diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-05-04 21:25:29 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-05-06 11:21:48 +0200 |
commit | 834822413d687572691753c33d837ffdb5064f2b (patch) | |
tree | fa296213ef129625a8b3b579d0e874c67ed3b86d /cppcanvas | |
parent | 31072493884f9df025befd1744f2e5eec940ff00 (diff) |
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@collabora.com>
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |