[Libreoffice-commits] core.git: filter/source

László Németh nemeth at numbertext.org
Sun Mar 2 03:38:26 PST 2014


 filter/source/svg/svgwriter.cxx |   13 +++----------
 filter/source/svg/svgwriter.hxx |    3 +--
 2 files changed, 4 insertions(+), 12 deletions(-)

New commits:
commit 37021dfb3f3dcf082ec1b656dfac71f593a97cec
Author: László Németh <nemeth at numbertext.org>
Date:   Sun Mar 2 12:25:37 2014 +0100

    fdo#72448 fix gradient color/transparency pos. in SVG export
    
    Change-Id: If65ffb9ac71eda95d8b5c4b35fd5828795b0469a

diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index ec7d5e1..a520794 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -2083,23 +2083,16 @@ void SVGActionWriter::ImplWritePattern( const PolyPolygon& rPolyPoly,
 }
 
 void SVGActionWriter::ImplWriteGradientEx( const PolyPolygon& rPolyPoly, const Gradient& rGradient,
-                                           sal_uInt32 nWriteFlags, sal_Bool bApplyMapping )
+                                           sal_uInt32 nWriteFlags)
 {
-    PolyPolygon aPolyPoly;
-
-    if( bApplyMapping )
-        ImplMap( rPolyPoly, aPolyPoly );
-    else
-        aPolyPoly = rPolyPoly;
-
     if ( rGradient.GetStyle() == GradientStyle_LINEAR ||
          rGradient.GetStyle() == GradientStyle_AXIAL )
     {
-        ImplWriteGradientLinear( aPolyPoly, rGradient );
+        ImplWriteGradientLinear( rPolyPoly, rGradient );
     }
     else
     {
-        ImplWritePattern( aPolyPoly, NULL, &rGradient, nWriteFlags );
+        ImplWritePattern( rPolyPoly, NULL, &rGradient, nWriteFlags );
     }
 }
 
diff --git a/filter/source/svg/svgwriter.hxx b/filter/source/svg/svgwriter.hxx
index bdc83e0..f7b2efb 100644
--- a/filter/source/svg/svgwriter.hxx
+++ b/filter/source/svg/svgwriter.hxx
@@ -360,8 +360,7 @@ private:
     void                    ImplWritePolyPolygon( const PolyPolygon& rPolyPoly, sal_Bool bLineOnly,
                                                   sal_Bool bApplyMapping = sal_True );
     void                    ImplWriteShape( const SVGShapeDescriptor& rShape, sal_Bool bApplyMapping = sal_True );
-    void                    ImplWriteGradientEx( const PolyPolygon& rPolyPoly, const Gradient& rGradient, sal_uInt32 nWriteFlags,
-                                                 sal_Bool bApplyMapping = sal_True );
+    void                    ImplWriteGradientEx( const PolyPolygon& rPolyPoly, const Gradient& rGradient, sal_uInt32 nWriteFlags);
     void                    ImplWriteGradientLinear( const PolyPolygon& rPolyPoly, const Gradient& rGradient );
     void                    ImplWriteGradientStop( const Color& rColor, double fOffset );
     Color                   ImplGetColorWithIntensity( const Color& rColor, sal_uInt16 nIntensity );


More information about the Libreoffice-commits mailing list