Kaydet (Commit) 37021dfb authored tarafından László Németh's avatar László Németh

fdo#72448 fix gradient color/transparency pos. in SVG export

Change-Id: If65ffb9ac71eda95d8b5c4b35fd5828795b0469a
üst bbd51100
......@@ -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 );
}
}
......
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment