[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - cppcanvas/source

Luboš Luňák (via logerrit) logerrit at kemper.freedesktop.org
Thu May 6 02:08:04 UTC 2021


 cppcanvas/source/mtfrenderer/implrenderer.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 74463ed1a4e0eab083976d8fa287c1dfe550bfcc
Author:     Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Tue May 4 21:25:29 2021 +0200
Commit:     Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Thu May 6 04:07:32 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/+/115088
    Tested-by: Jenkins
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>

diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index b04d7a997cd3..0aecf685097b 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