summaryrefslogtreecommitdiff
path: root/cppcanvas
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2012-04-13 16:24:25 +0200
committerRadek Doulik <rodo@novell.com>2012-04-13 16:25:31 +0200
commite94e669bd3499827f19585b704e7c0ef4f21bd13 (patch)
tree1ccf38a1a045983d60b72398bfae814508f0e48a /cppcanvas
parentf780859b76263638b9227122e465b0c629c7ca3e (diff)
set minimal width if pen width is set to zero
Diffstat (limited to 'cppcanvas')
-rw-r--r--cppcanvas/source/mtfrenderer/emfplus.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index 8409d7f302c0..0d8005cd09fd 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -608,7 +608,8 @@ namespace cppcanvas
void SetStrokeAttributes (rendering::StrokeAttributes& rStrokeAttributes, ImplRenderer& rR, const OutDevState& rState)
{
- rStrokeAttributes.StrokeWidth = (rState.mapModeTransform * rR.MapSize (width, 0)).getX ();
+ 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 ();
}
void Read (SvStream& s, ImplRenderer& rR, sal_Int32, sal_Int32 )