[Libreoffice-commits] core.git: cppcanvas/source
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Thu May 6 09:22:30 UTC 2021
cppcanvas/source/mtfrenderer/implrenderer.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 834822413d687572691753c33d837ffdb5064f2b
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Tue May 4 21:25:29 2021 +0200
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Thu May 6 11:21:48 2021 +0200
transform by vector length, not just X
I missed this one in b71d9a6d15cfb8a50afdea5ac064f40d84c561f8.
Change-Id: Ibbfd6ed1e064030a6a2818df94d7d61dd2b92caa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115116
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak at collabora.com>
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index a9df9eb2c6b8..215bd45124b0 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -106,7 +106,7 @@ namespace
{
const ::basegfx::B2DSize aWidth( rLineInfo.GetWidth(), 0 );
o_rStrokeAttributes.StrokeWidth =
- (rParms.mrStates.getState().mapModeTransform * aWidth).getX();
+ (rParms.mrStates.getState().mapModeTransform * aWidth).getLength();
// setup reasonable defaults
o_rStrokeAttributes.MiterLimit = 15.0; // 1.0 was no good default; GDI+'s limit is 10.0, our's is 15.0
More information about the Libreoffice-commits
mailing list