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 15:14:23 +0200
commitfa47f9781fff89698a68353f9f37ea3ac6bda43c (patch)
tree17eeb9bedc8eae5d1eb3d9e1b53568dfd862b614
parentbe6f71c546e4826bda43762877d8d424d4f903a7 (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/+/98892 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