summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-12-02 12:56:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-12-02 22:55:19 +0100
commit3f48954724242352d606e0ac2091afc049580c86 (patch)
tree041c508150b7d7fb3cfa4c96082f47d5052afae6
parent24db04bbe09f19a49733699e42d0e095eb417fed (diff)
ofz#41591 if only recording to metafile, don't convert tools->basegfx->tools
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 <caolanm@redhat.com>
-rw-r--r--vcl/source/outdev/polyline.cxx2
1 files changed, 1 insertions, 1 deletions
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(),