summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-04-07 15:14:52 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2014-04-07 16:43:16 +1000
commit97cfb1fe0163a9dc09734a761c56d149b8c61f4b (patch)
tree9c05581fcc99427ed9cb3e90347596841ac32e2a /vcl
parent05fb3136904c8e6ff3a0c9d8c1c29ce904573d58 (diff)
DrawGradient( const PolyPolygon&... etc) gets graphics instance too early
The OutputDevice::DrawGradient function that takes a PolyPolygon checks for a graphics instance far too early. It then checks it again when it actually needs it, but we really only need to get it once. Change-Id: I2426dfe2e5c03f0e8e3939b53b16c99afe637812
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/outdev4.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/vcl/source/gdi/outdev4.cxx b/vcl/source/gdi/outdev4.cxx
index 696c2f573c31..b84b8b80504b 100644
--- a/vcl/source/gdi/outdev4.cxx
+++ b/vcl/source/gdi/outdev4.cxx
@@ -812,10 +812,6 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
if( mbOutputClipped )
return;
- if( !mpGraphics )
- if( !ImplGetGraphics() )
- return;
-
if( rPolyPoly.Count() && rPolyPoly[ 0 ].GetSize() )
{
if ( mnDrawMode & ( DRAWMODE_BLACKGRADIENT | DRAWMODE_WHITEGRADIENT | DRAWMODE_SETTINGSGRADIENT) )