From 16ddff7dcadfa1c062d9388e76a10583f6d33722 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 23 Jul 2019 17:25:32 +0100 Subject: Related: tdf#126227 don't need preserve variant here MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tested-by: Caolán McNamara --- vcl/headless/svpgdi.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl') 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) -- cgit