summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/gdi/outdev4.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/gdi/outdev4.cxx b/vcl/source/gdi/outdev4.cxx
index ed149c69a10f..fde279004f8e 100644
--- a/vcl/source/gdi/outdev4.cxx
+++ b/vcl/source/gdi/outdev4.cxx
@@ -736,6 +736,10 @@ void OutputDevice::ClipAndDrawGradient ( Gradient &rGradient, const PolyPolygon
if( !mpGraphics && !ImplGetGraphics() )
return;
+ // secure clip region
+ Push( PUSH_CLIPREGION );
+ IntersectClipRegion( aBoundRect );
+
if( mbInitClipRegion )
ImplInitClipRegion();
@@ -761,6 +765,8 @@ void OutputDevice::ClipAndDrawGradient ( Gradient &rGradient, const PolyPolygon
else
ImplDrawComplexGradient( aRect, rGradient, false, &aClipPolyPoly );
}
+
+ Pop();
}
}
}