Fix inconsistent display of filled highlighter strokes

upstream-master
Benjamin Hennion 5 years ago
parent 60ffda1d6c
commit bd3ca75fe3
  1. 3
      src/view/StrokeView.cpp

@ -80,6 +80,8 @@ void StrokeView::drawNoPressure() {
// Do not apply the alpha here, else the border and the fill
// are visible instead of one homogeneous area
DocumentView::applyColor(cr, s, 255);
// The operator will be reset (to CAIRO_OPERATOR_MULTIPLY) by cairo_pop_group_to_source below
cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
drawFillStroke();
group = true;
}
@ -95,7 +97,6 @@ void StrokeView::drawNoPressure() {
if (group) {
cairo_pop_group_to_source(cr);
if (noAlpha) {
// Currently drawing -> transparent applied on blitting
cairo_paint(cr);

Loading…
Cancel
Save