vcl/source/filter/wmf/winmtf.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit db477faebd75ed31416cc642a6a1de30227cac29
Author: Tomaž Vajngerl <[email protected]>
Date:   Tue Apr 22 12:06:11 2014 +0200

    wmf: support fat lines for PolyPolygons in wmf filter
    
    Change-Id: I9fe9d7b5237031e3001f64af7001d91fa53f1c64

diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx
index 5074a5d..97eed0c 100644
--- a/vcl/source/filter/wmf/winmtf.cxx
+++ b/vcl/source/filter/wmf/winmtf.cxx
@@ -1316,6 +1316,13 @@ void WinMtfOutput::DrawPolyPolygon( PolyPolygon& 
rPolyPolygon, sal_Bool bRecordP
         {
             UpdateLineStyle();
             mpGDIMetaFile->AddAction( new MetaPolyPolygonAction( rPolyPolygon 
) );
+            if (maLineStyle.aLineInfo.GetWidth() > 0 || 
maLineStyle.aLineInfo.GetStyle() == LINE_DASH)
+            {
+                for (sal_uInt16 nPoly = 0; nPoly < rPolyPolygon.Count(); 
++nPoly)
+                {
+                    mpGDIMetaFile->AddAction(new 
MetaPolyLineAction(rPolyPolygon[nPoly], maLineStyle.aLineInfo));
+                }
+            }
         }
     }
 }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to