summaryrefslogtreecommitdiff
path: root/gtk/gtktreemodel.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2004-11-15 16:22:49 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-11-15 16:22:49 +0000
commit5c93ee5d5c37b6ff8cac06d366efc8e79fd2fe0c (patch)
tree5c68c0d8d83fbbb3faede7aa597b0faf88cb8995 /gtk/gtktreemodel.c
parent650de3db382911992dc3437c358282fb853feb8e (diff)
downloadgtk+-5c93ee5d5c37b6ff8cac06d366efc8e79fd2fe0c.tar.gz
*** empty log message ***
Diffstat (limited to 'gtk/gtktreemodel.c')
-rw-r--r--gtk/gtktreemodel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c
index 148f153f26..033c5cfc46 100644
--- a/gtk/gtktreemodel.c
+++ b/gtk/gtktreemodel.c
@@ -734,6 +734,9 @@ gtk_tree_path_prev (GtkTreePath *path)
{
g_return_val_if_fail (path != NULL, FALSE);
+ if (path->depth == 0)
+ return FALSE;
+
if (path->indices[path->depth - 1] == 0)
return FALSE;