diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-04-28 17:22:29 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-04-28 23:24:57 +0200 |
commit | 56c450a9e9e12ba55ce8f62de546000df146052d (patch) | |
tree | dfc81ca1dc55746cd1652452930a4d026264441b | |
parent | c33f08ca36084643e6eed20c18f151cf75045c62 (diff) |
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.lunak@collabora.com>
-rw-r--r-- | vcl/skia/gdiimpl.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
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; |