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:
Matthias Clasen 2011-02-16 18:46:44 -05:00
parent 0c3da06a62
commit 405b54c72e

View File

@ -2912,9 +2912,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,