diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-08-20 16:25:00 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-08-21 09:54:45 +0200 |
commit | 600ff56010f5297cab7faf4bc44ae29dfb404d2f (patch) | |
tree | aa4b856d9c0b8bbecd5f3d8036ce48a16e2c96cf /vcl/skia/gdiimpl.cxx | |
parent | 7b0ab85b4042cb38221ca5c9794b70c87443181f (diff) |
fix setting clip region for new Skia graphics objects (tdf#135487)
Set the clip region only after possibly creating the surface, because
creating the surface sets the default clip region.
Change-Id: I2c344397336fa487f55553f49e40704ef05b2100
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101077
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/skia/gdiimpl.cxx')
-rw-r--r-- | vcl/skia/gdiimpl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx index f522e5b6a857..52ce4cc2b96f 100644 --- a/vcl/skia/gdiimpl.cxx +++ b/vcl/skia/gdiimpl.cxx @@ -414,8 +414,8 @@ bool SkiaSalGraphicsImpl::setClipRegion(const vcl::Region& region) return true; SkiaZone zone; checkPendingDrawing(); - mClipRegion = region; checkSurface(); + mClipRegion = region; SAL_INFO("vcl.skia.trace", "setclipregion(" << this << "): " << region); SkCanvas* canvas = mSurface->getCanvas(); // SkCanvas::clipRegion() can only further reduce the clip region, |