Kaydet (Commit) 72ba558e authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: tdf#125479 menu item might be empty

Change-Id: I1b82e6495dcc64fde58498036f02f779a657301b
Reviewed-on: https://gerrit.libreoffice.org/72981
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst d9f190ab
...@@ -8685,6 +8685,8 @@ static void disable_area_apply_attributes_cb(GtkWidget* pItem, gpointer userdata ...@@ -8685,6 +8685,8 @@ static void disable_area_apply_attributes_cb(GtkWidget* pItem, gpointer userdata
{ {
GtkMenuItem* pMenuItem = GTK_MENU_ITEM(pItem); GtkMenuItem* pMenuItem = GTK_MENU_ITEM(pItem);
GtkWidget* child = gtk_bin_get_child(GTK_BIN(pMenuItem)); GtkWidget* child = gtk_bin_get_child(GTK_BIN(pMenuItem));
if (!child)
return;
GtkCellView* pCellView = GTK_CELL_VIEW(child); GtkCellView* pCellView = GTK_CELL_VIEW(child);
GtkCellLayout* pCellLayout = GTK_CELL_LAYOUT(pCellView); GtkCellLayout* pCellLayout = GTK_CELL_LAYOUT(pCellView);
GtkCellArea* pCellArea = gtk_cell_layout_get_area(pCellLayout); GtkCellArea* pCellArea = gtk_cell_layout_get_area(pCellLayout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment