summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2014-03-02 12:25:37 +0100
committerLászló Németh <nemeth@numbertext.org>2014-03-02 12:25:37 +0100
commit37021dfb3f3dcf082ec1b656dfac71f593a97cec (patch)
treec9e0b47c9bb26a540ee220692d6c1f3d22aecdfa /filter
parentbbd51100fa9686821f59224933d0cefd272006a5 (diff)
fdo#72448 fix gradient color/transparency pos. in SVG export
Change-Id: If65ffb9ac71eda95d8b5c4b35fd5828795b0469a
Diffstat (limited to 'filter')
-rw-r--r--filter/source/svg/svgwriter.cxx13
-rw-r--r--filter/source/svg/svgwriter.hxx3
2 files changed, 4 insertions, 12 deletions
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index ec7d5e186229..a52079465cc1 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 bdc83e0c64e5..f7b2efb7c6ac 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 );