[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - cppcanvas/source

Jan Holesovsky kendy at collabora.com
Tue Nov 26 02:05:40 PST 2013


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

New commits:
commit e6685ba6808a1315ebf0c8f988ef8533be193857
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Tue Nov 19 10:02:12 2013 +0100

    EMF+: Stroke size is always supposed to be absolute.
    
    Conflicts:
    	cppcanvas/source/mtfrenderer/emfplus.cxx
    
    Change-Id: I7221311e5dee6384dc2d1c071bf6f1c61811895a
    Reviewed-on: https://gerrit.libreoffice.org/6801
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index 6ca731a..b0acbd3 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -609,7 +609,7 @@ namespace cppcanvas
             void SetStrokeAttributes (rendering::StrokeAttributes& rStrokeAttributes, ImplRenderer& rR, const OutDevState& rState)
             {
                 EMFP_DEBUG (if (width == 0.0) printf ("EMF+\tTODO: pen with zero width - using minimal which might not be correct\n"));
-                rStrokeAttributes.StrokeWidth = (rState.mapModeTransform * rR.MapSize (width == 0.0 ? 0.05 : width, 0)).getX ();
+                rStrokeAttributes.StrokeWidth = fabs((rState.mapModeTransform * rR.MapSize (width == 0.0 ? 0.05 : width, 0)).getX());
             }
 
             void Read (SvStream& s, ImplRenderer& rR, sal_Int32, sal_Int32 )


More information about the Libreoffice-commits mailing list