From 3f48954724242352d606e0ac2091afc049580c86 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 2 Dec 2021 12:56:36 +0000 Subject: ofz#41591 if only recording to metafile, don't convert tools->basegfx->tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit just record the tools::Polygon so the copy on write shared polygon is stored rather than a new instance Change-Id: Ia2061365351457e0f0eec3be42c62063e64fdc9a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126247 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/source/outdev/polyline.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcl/source/outdev/polyline.cxx b/vcl/source/outdev/polyline.cxx index ef4f0a4a5f2d..499651c78879 100644 --- a/vcl/source/outdev/polyline.cxx +++ b/vcl/source/outdev/polyline.cxx @@ -118,7 +118,7 @@ void OutputDevice::DrawPolyLine( const tools::Polygon& rPoly, const LineInfo& rL // #i101491# // Try direct Fallback to B2D-Version of DrawPolyLine - if(LineStyle::Solid == rLineInfo.GetStyle()) + if (LineStyle::Solid == rLineInfo.GetStyle() && IsDeviceOutputNecessary()) { DrawPolyLine( rPoly.getB2DPolygon(), -- cgit v1.2.3