summaryrefslogtreecommitdiff
path: root/vcl/headless
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-23 17:25:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-24 09:14:51 +0200
commit16ddff7dcadfa1c062d9388e76a10583f6d33722 (patch)
tree9317f44dc62a0e533076047d6805a6cb2533a296 /vcl/headless
parent0a5eb01347b1bdeef706b2723fbc02d769f81369 (diff)
Related: tdf#126227 don't need preserve variant here
we're calling cairo_fill_preserve so we can reuse the same path to stroke. We don't use this path again after stroke. this change should have no visual effect Change-Id: I1ad6af875b0a58a0699b5d9801c76510cc242ab9 Reviewed-on: https://gerrit.libreoffice.org/76196 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/headless')
-rw-r--r--vcl/headless/svpgdi.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 205c1153e02b..b0e4c40cc5fa 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -579,7 +579,7 @@ bool SvpSalGraphics::drawAlphaRect(long nX, long nY, long nWidth, long nHeight,
// expand with possible StrokeDamage
extents.expand(getClippedStrokeDamage(cr));
- cairo_stroke_preserve(cr);
+ cairo_stroke(cr);
}
releaseCairoContext(cr, false, extents);
@@ -1466,7 +1466,7 @@ bool SvpSalGraphics::drawPolyPolygon(
// expand with possible StrokeDamage
extents.expand(getClippedStrokeDamage(cr));
- cairo_stroke_preserve(cr);
+ cairo_stroke(cr);
}
// if transformation has been applied, transform also extents (ranges)