summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLászló Németh <laszlo.nemeth@collabora.com>2015-05-15 16:25:00 +0200
committerLászló Németh <laszlo.nemeth@collabora.com>2015-05-15 16:34:34 +0200
commitaead21f7528047fe5c31c39ac6bec14b55f80293 (patch)
tree93dc81d72a61b06169a12bca3b65db855c383ab0
parent32bccdb8feebb1145cfb75e61c39c317b4931553 (diff)
tdf#91254: draw missing EMF hairlines with linecap settings
By removing linecap settings here (meaningless with 0 line width). Change-Id: I532d09af77d77dadcbbdd2f957136689239ccc07
-rw-r--r--vcl/source/filter/wmf/enhwmf.cxx14
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 );