set minimal width if pen width is set to zero
This commit is contained in:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user