mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
Check the return value of gtk_tree_model_get_iter
Noticed in passing, didn't really see it crash there, but better safe than sorry.
This commit is contained in:
parent
de7b27159d
commit
fa007952ba
@ -2530,9 +2530,12 @@ row_is_separator (GtkTreeView *tree_view,
|
||||
GtkTreeIter tmpiter;
|
||||
|
||||
if (iter)
|
||||
tmpiter = *iter;
|
||||
tmpiter = *iter;
|
||||
else
|
||||
gtk_tree_model_get_iter (tree_view->priv->model, &tmpiter, path);
|
||||
{
|
||||
if (!gtk_tree_model_get_iter (tree_view->priv->model, &tmpiter, path))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
is_separator = tree_view->priv->row_separator_func (tree_view->priv->model,
|
||||
&tmpiter,
|
||||
|
Loading…
Reference in New Issue
Block a user