finch/libgnt/gnttree.c

branch
next.minor
changeset 21261
eaf551849532
parent 21254
ab6e08037b7c
child 21262
b1635191fe14
--- a/finch/libgnt/gnttree.c	Sun Oct 28 17:17:56 2007 +0000
+++ b/finch/libgnt/gnttree.c	Tue Oct 30 09:17:50 2007 +0000
@@ -1492,7 +1492,8 @@
 			col->text = g_strdup(text ? text : "");
 		}
 
-		if (get_distance(tree->top, row) >= 0 && get_distance(row, tree->bottom) >= 0)
+		if (GNT_WIDGET_IS_FLAG_SET(GNT_WIDGET(tree), GNT_WIDGET_MAPPED) &&
+			get_distance(tree->top, row) >= 0 && get_distance(row, tree->bottom) >= 0)
 			redraw_tree(tree);
 	}
 }

mercurial