[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 27 14:34:12 UTC 2019


 vcl/unx/gtk3/gtk3gtkinst.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 876580c3f99e12239018e5c60571a989314d7b6a
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 16:33:21 2019 +0200

    protect against never gettting a size set
    
    Change-Id: Ie7f40abaa5893bee46d64b85404ee733c0c11f85
    Reviewed-on: https://gerrit.libreoffice.org/74799
    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 4ea1c172178a..384011f8c191 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -8813,7 +8813,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