aboutsummaryrefslogtreecommitdiffstats
path: root/epan/stats_tree.h
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2005-02-27 16:55:24 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2005-02-27 16:55:24 +0000
commit93c46dde912e0f393989fd2a3e50dc0349be9631 (patch)
tree10e8a934441d70617b5b64fd760887800706176f /epan/stats_tree.h
parentf2375c312737476024e659fa6d965a4c0580ed50 (diff)
Several fixes to the stats_tree
- Avoid creating a copy of every branch at reinitialization this used to cause some GTK warnings and a leakage of tree nodes - propperly check the optarg to avoid getting junk in the filter text this caused a crash svn path=/trunk/; revision=13534
Diffstat (limited to 'epan/stats_tree.h')
-rw-r--r--epan/stats_tree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/stats_tree.h b/epan/stats_tree.h
index 988c44b09a..a89669f3be 100644
--- a/epan/stats_tree.h
+++ b/epan/stats_tree.h
@@ -97,6 +97,9 @@ extern int tick_range(stats_tree* st,
int parent_id,
int value_in_range);
+#define tick_range_with_parent_name(st,name,parent_name,value_in_range) \
+ tick_range((st),(name),get_parent_id_by_name((st),(parent_name),(value_in_range))
+
/* */
extern int create_pivot_node(stats_tree* st,
const gchar* name,