summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-06-27 12:17:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-06-27 17:37:53 +0200
commit7440ca952c51a756bdc49d436abff1af25fe745b (patch)
tree849519202ed14aad144a0f0ee057f3d6d9692469
parente6a1bbe6690474e752416c81e1ca8c82b2843539 (diff)
protect against never gettting a size set
Change-Id: Ie7f40abaa5893bee46d64b85404ee733c0c11f85 Reviewed-on: https://gerrit.libreoffice.org/74797 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 6ddf6e30fcf8..5b7591d3888c 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -8825,7 +8825,7 @@ private:
void signal_draw(cairo_t* cr)
{
GdkRectangle rect;
- if (!gdk_cairo_get_clip_rectangle(cr, &rect))
+ if (!m_pSurface || !gdk_cairo_get_clip_rectangle(cr, &rect))
return;
tools::Rectangle aRect(Point(rect.x, rect.y), Size(rect.width, rect.height));
aRect = m_xDevice->PixelToLogic(aRect);