summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-05-08 13:34:11 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-05-08 13:34:11 +0200
commit1d90d3182f63fdbacc392269eb407eb093ede118 (patch)
treeb5e7ea1d7515ca0e5a5adddc262d76f3a95f7a9f
parent028ed2e30c373f706f3a5daaac80c5bfbd264009 (diff)
Fixed assertion in the tag model when no tags exist.
-rw-r--r--tag_model.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tag_model.c b/tag_model.c
index 0ba33ef..a292fe1 100644
--- a/tag_model.c
+++ b/tag_model.c
@@ -211,8 +211,8 @@ static gboolean tag_model_get_iter(GtkTreeModel *tree_model, GtkTreeIter *iter,
depth = gtk_tree_path_get_depth(path);
n = indices[depth-1];
- //if(n >= tag_model->num_rows || n < 0)
- // return FALSE;
+ if((depth == 1 && n >= tag_model->num_rows) || n < 0)
+ return FALSE;
//record = &g_array_index(tag_model->rows, TagModelRecord, n);
record = tag_model_get_record_recursive(tag_model, indices, depth);