[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jun 27 15:39:11 UTC 2019
vcl/unx/gtk3/gtk3gtkinst.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7440ca952c51a756bdc49d436abff1af25fe745b
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jun 27 12:17:37 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jun 27 17:37:53 2019 +0200
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 at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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);
More information about the Libreoffice-commits
mailing list