vcl/source/outdev/polyline.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3f48954724242352d606e0ac2091afc049580c86
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Dec 2 12:56:36 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Dec 2 22:55:19 2021 +0100

    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 <caol...@redhat.com>

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(),

Reply via email to