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 de7b27159d
commit fa007952ba

View File

@ -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,