summaryrefslogtreecommitdiff
path: root/canvas/source/vcl/canvashelper_texturefill.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/vcl/canvashelper_texturefill.cxx')
-rw-r--r--canvas/source/vcl/canvashelper_texturefill.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/vcl/canvashelper_texturefill.cxx b/canvas/source/vcl/canvashelper_texturefill.cxx
index 1582a3ad7601..13778b990b61 100644
--- a/canvas/source/vcl/canvashelper_texturefill.cxx
+++ b/canvas/source/vcl/canvashelper_texturefill.cxx
@@ -171,7 +171,7 @@ namespace vclcanvas
aTempPoly[3] = ::Point( ::basegfx::fround( aLeftBottom.getX() ),
::basegfx::fround( aLeftBottom.getY() ) );
aTempPoly[4] = aTempPoly[0];
- rOutDev.DrawGradient( aTempPoly, vclGradient );
+ rOutDev.DrawGradient( ::tools::PolyPolygon(aTempPoly), vclGradient );
return;
}
// 3 colors with first and last being equal and 3 stops (at 0, 0.5 and 1) is an axial gradient:
@@ -196,7 +196,7 @@ namespace vclcanvas
aTempPoly[3] = ::Point( ::basegfx::fround( aLeftBottom.getX() ),
::basegfx::fround( aLeftBottom.getY() ) );
aTempPoly[4] = aTempPoly[0];
- rOutDev.DrawGradient( aTempPoly, vclGradient );
+ rOutDev.DrawGradient( ::tools::PolyPolygon(aTempPoly), vclGradient );
return;
}