[Libreoffice-commits] core.git: vcl/skia
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Wed Apr 28 21:28:54 UTC 2021
vcl/skia/gdiimpl.cxx | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
New commits:
commit 56c450a9e9e12ba55ce8f62de546000df146052d
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Wed Apr 28 17:22:29 2021 +0200
Commit: Luboš Luňák <l.lunak at 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.lunak at 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;
More information about the Libreoffice-commits
mailing list