diff options
Diffstat (limited to 'vcl/source/filter/wmf/enhwmf.cxx')
-rw-r--r-- | vcl/source/filter/wmf/enhwmf.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/vcl/source/filter/wmf/enhwmf.cxx b/vcl/source/filter/wmf/enhwmf.cxx index c314ef69091f..f02871de2bd3 100644 --- a/vcl/source/filter/wmf/enhwmf.cxx +++ b/vcl/source/filter/wmf/enhwmf.cxx @@ -936,11 +936,17 @@ bool EnhWMFReader::ReadEnhWMF() switch( nStyle & 0xF00 ) { case PS_ENDCAP_ROUND : - aLineInfo.SetLineCap( com::sun::star::drawing::LineCap_ROUND ); - break; + if ( aSize.Width() ) + { + aLineInfo.SetLineCap( com::sun::star::drawing::LineCap_ROUND ); + break; + } case PS_ENDCAP_SQUARE : - aLineInfo.SetLineCap( com::sun::star::drawing::LineCap_SQUARE ); - break; + if ( aSize.Width() ) + { + aLineInfo.SetLineCap( com::sun::star::drawing::LineCap_SQUARE ); + break; + } case PS_ENDCAP_FLAT : default : aLineInfo.SetLineCap( com::sun::star::drawing::LineCap_BUTT ); |