aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/stats_tree_stat.c
diff options
context:
space:
mode:
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2006-03-30 20:29:36 +0000
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2006-03-30 20:29:36 +0000
commitc2b6ad8a76243404865c9985ded38f6484aafd19 (patch)
treebcb8bb5464e89b606d8c522b35c2a538da5cdf00 /gtk/stats_tree_stat.c
parent62318df73342cc04d932eeab8dad60f4b0e69d38 (diff)
fix for Bug 849
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17777 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/stats_tree_stat.c')
-rw-r--r--gtk/stats_tree_stat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/stats_tree_stat.c b/gtk/stats_tree_stat.c
index 51ba3b9476..b90fac5999 100644
--- a/gtk/stats_tree_stat.c
+++ b/gtk/stats_tree_stat.c
@@ -134,7 +134,7 @@ static void draw_gtk_node(stat_node* node) {
stats_tree_get_strs_from_node(node, value, rate, percent);
#if GTK_MAJOR_VERSION >= 2
- if (node->st->pr->store) {
+ if (node->st->pr->store && node->pr->iter) {
gtk_tree_store_set(node->st->pr->store, node->pr->iter,
RATE_COLUMN, rate,
COUNT_COLUMN, value,
@@ -166,10 +166,12 @@ static void draw_gtk_tree( void *psp ) {
draw_gtk_node(child);
#if GTK_MAJOR_VERSION >= 2
- gtk_tree_view_expand_row(GTK_TREE_VIEW(st->pr->tree),
+ if (child->pr->iter && st->pr->store) {
+ gtk_tree_view_expand_row(GTK_TREE_VIEW(st->pr->tree),
gtk_tree_model_get_path(GTK_TREE_MODEL(st->pr->store),
child->pr->iter),
FALSE);
+ }
#endif
}