diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-06-21 13:29:35 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-06-21 15:54:15 +0200 |
commit | d25e5069176ab53cdc917e3501a81e9546ec46f7 (patch) | |
tree | b4824eaa2fd920891fec1e5cc33708ef05603c13 | |
parent | 1bdbdc6ebcdba2784dcfa56b50632c4706ba14b5 (diff) |
tdf#125777 restore old RenderContext before return
Regression from commit 710f3c63af2d ("tdf#125670 just check gradient
clipping on drawing")
Change-Id: I6acf23675414983bd07639703f43aa934c0a48ed
Reviewed-on: https://gerrit.libreoffice.org/74502
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
-rw-r--r-- | vcl/source/outdev/gradient.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/outdev/gradient.cxx b/vcl/source/outdev/gradient.cxx index d356355889d1..3e50a016cc46 100644 --- a/vcl/source/outdev/gradient.cxx +++ b/vcl/source/outdev/gradient.cxx @@ -101,8 +101,11 @@ void OutputDevice::DrawGradient( const tools::PolyPolygon& rPolyPoly, if( mbInitClipRegion ) InitClipRegion(); - if ( mbOutputClipped ) + if (mbOutputClipped) + { + Pop(); return; + } // try to draw gradient natively bDrawn = mpGraphics->DrawGradient( aClixPolyPoly, aGradient ); |