mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
app: don't try to set properties of a NULL icon view
This commit is contained in:
parent
7cfda8cc33
commit
c60e29254b
1 changed files with 5 additions and 2 deletions
|
@ -577,8 +577,11 @@ gimp_container_icon_view_set_view_size (GimpContainerView *view)
|
|||
if (icon_view->model)
|
||||
gimp_container_tree_store_set_view_size (GIMP_CONTAINER_TREE_STORE (icon_view->model));
|
||||
|
||||
gtk_icon_view_set_columns (icon_view->view, -1);
|
||||
gtk_icon_view_set_item_width (icon_view->view, -1);
|
||||
if (icon_view->view)
|
||||
{
|
||||
gtk_icon_view_set_columns (icon_view->view, -1);
|
||||
gtk_icon_view_set_item_width (icon_view->view, -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue