[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-4.2' - vcl/source

Tomaž Vajngerl tomaz.vajngerl at collabora.com
Sun Apr 27 10:37:08 PDT 2014


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

New commits:
commit db477faebd75ed31416cc642a6a1de30227cac29
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.com>
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));
+                }
+            }
         }
     }
 }


More information about the Libreoffice-commits mailing list