summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-16 11:10:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-16 16:59:01 +0200
commitd44ddfce0766f57ac7d14978dd9e12813af93ce7 (patch)
treee8433c0ecf79257fd9eb6a7df57209c8b3bdfa44
parent14ca32ec6e0ee7fdb1d70d7db52b532e571ebd5d (diff)
tdf#134841 image totally clipped out
the clip region seems to be out of date, this looks similar to the problem of "compared to other public methods of OutputDevice this test was missing ... one of the goals of the change was to use that method more often, so this may have never been detected before" where typical setup code was missing commit 828504974d70111e4a35b31d579cf42fe660a660 Date: Fri Feb 21 16:58:17 2020 +0100 tdf#130768 speedup huge pixel graphics Cairo Change-Id: Icd1495f3830b69ae207cad308e821257e3e5e44b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98836 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/outdev/bitmap.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx
index ea29dc438119..83b625d828cb 100644
--- a/vcl/source/outdev/bitmap.cxx
+++ b/vcl/source/outdev/bitmap.cxx
@@ -1210,6 +1210,12 @@ void OutputDevice::DrawTransformedBitmapEx(
if ( !mpGraphics && !AcquireGraphics() )
return;
+ if ( mbInitClipRegion )
+ InitClipRegion();
+
+ if ( mbOutputClipped )
+ return;
+
#ifdef DO_TIME_TEST
// MM02 start time test when some data (not for trivial stuff). Will
// trigger and show data when leaving this method by destructing helper