vcl/unx/gtk3/gtk3gtkinst.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 72ba558eb9e827e0fb2c98cc6c06b25aaf9cc8b6
Author: Caolán McNamara <[email protected]>
AuthorDate: Sun May 26 15:02:59 2019 +0100
Commit: Caolán McNamara <[email protected]>
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 <[email protected]>
Tested-by: Caolán McNamara <[email protected]>
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);
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits