vcl/skia/gdiimpl.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 56c450a9e9e12ba55ce8f62de546000df146052d
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Wed Apr 28 17:22:29 2021 +0200
Commit:     Luboš Luňák <l.lu...@collabora.com>
CommitDate: Wed Apr 28 23:24:57 2021 +0200

    Skia understands that linewidth == 0 means hairline
    
    Change-Id: Ic5aea464d6414fc2218179143d16121ef293bdfe
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114816
    Tested-by: Jenkins
    Reviewed-by: Luboš Luňák <l.lu...@collabora.com>

diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx
index f0b9fb2e0d5c..b0a992fa942f 100644
--- a/vcl/skia/gdiimpl.cxx
+++ b/vcl/skia/gdiimpl.cxx
@@ -1065,11 +1065,8 @@ bool SkiaSalGraphicsImpl::drawPolyLine(const 
basegfx::B2DHomMatrix& rObjectToDev
     preDraw();
     SAL_INFO("vcl.skia.trace", "drawpolyline(" << this << "): " << rPolyLine 
<< ":" << mLineColor);
 
-    // tdf#124848 get correct LineWidth in discrete coordinates,
-    if (fLineWidth == 0) // hairline
-        fLineWidth = 1.0;
-    else // Adjust line width for object-to-device scale.
-        fLineWidth = (rObjectToDevice * basegfx::B2DVector(fLineWidth, 
0)).getLength();
+    // Adjust line width for object-to-device scale.
+    fLineWidth = (rObjectToDevice * basegfx::B2DVector(fLineWidth, 
0)).getLength();
 
     // Transform to DeviceCoordinates, get DeviceLineWidth, execute 
PixelSnapHairline
     basegfx::B2DPolyPolygon aPolyPolygonLine;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to