[Libreoffice-commits] core.git: cppcanvas/source
Andrzej Hunt
andrzej.hunt at collabora.com
Wed Jan 1 09:08:44 PST 2014
cppcanvas/source/mtfrenderer/emfplus.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 83f2b3c590120a60b5e94fb1a15054ebe0745dbb
Author: Andrzej Hunt <andrzej.hunt at collabora.com>
Date: Wed Jan 1 17:07:56 2014 +0000
EMF+: mapping can rotate the width vector, so use resulting length.
Otherwise (i.e. with non-vertical lines) the width will be incorrect,
and can result in lines disappearing as the resulting X component
can be tiny/approaching zero.
Change-Id: Icf3b7c10c627594600b517b8ff445f8df87c56f8
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index 5bea4fc..a6aeb63 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -786,7 +786,7 @@ namespace cppcanvas
SAL_INFO ("cppcanvas.emf", "TODO: pen with zero width - using minimal which might not be correct\n");
}
#endif
- rStrokeAttributes.StrokeWidth = fabs((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)).getLength());
}
void SetStrokeDashing(rendering::StrokeAttributes& rStrokeAttributes)
More information about the Libreoffice-commits
mailing list