From e6685ba6808a1315ebf0c8f988ef8533be193857 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 19 Nov 2013 10:02:12 +0100 Subject: 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 Tested-by: Andras Timar --- cppcanvas/source/mtfrenderer/emfplus.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cppcanvas') diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index 6ca731ad9f3d..b0acbd341924 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 ) -- cgit v1.2.3