[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun May 26 15:18:23 UTC 2019


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

New commits:
commit 72ba558eb9e827e0fb2c98cc6c06b25aaf9cc8b6
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun May 26 15:02:59 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun May 26 17:17:38 2019 +0200

    Related: tdf#125479 menu item might be empty
    
    Change-Id: I1b82e6495dcc64fde58498036f02f779a657301b
    Reviewed-on: https://gerrit.libreoffice.org/72981
    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 263577731bdc..6e3069600dd1 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -8685,6 +8685,8 @@ static void disable_area_apply_attributes_cb(GtkWidget* pItem, gpointer userdata
 {
     GtkMenuItem* pMenuItem = GTK_MENU_ITEM(pItem);
     GtkWidget* child = gtk_bin_get_child(GTK_BIN(pMenuItem));
+    if (!child)
+        return;
     GtkCellView* pCellView = GTK_CELL_VIEW(child);
     GtkCellLayout* pCellLayout = GTK_CELL_LAYOUT(pCellView);
     GtkCellArea* pCellArea = gtk_cell_layout_get_area(pCellLayout);


More information about the Libreoffice-commits mailing list