aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.c
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2007-01-12 10:21:02 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2007-01-12 10:21:02 +0000
commit92d8d4e9b4005974aaabe5408b122a5ff269ace1 (patch)
tree38dac208852be90e552fc48674751ba421dd4e5b /epan/proto.c
parentf3235a259f56fc3a4071590e423d1b1dce845697 (diff)
do not ignore invisible tree, it can break tree creation for coloring/filtering
svn path=/trunk/; revision=20404
Diffstat (limited to 'epan/proto.c')
-rw-r--r--epan/proto.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 31f429d892..fc5140560d 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -3145,16 +3145,14 @@ proto_item_get_subtree(proto_item *pi) {
proto_item*
proto_item_get_parent(proto_item *ti) {
- /* dont bother if tree is not visible */
- if( (!ti) || (!(PTREE_DATA(ti)->visible)) )
+ if (!ti)
return (NULL);
return ti->parent;
}
proto_item*
proto_item_get_parent_nth(proto_item *ti, int gen) {
- /* dont bother if tree is not visible */
- if( (!ti) || (!(PTREE_DATA(ti)->visible)) )
+ if (!ti)
return (NULL);
while (gen--) {
ti = ti->parent;
@@ -3167,16 +3165,14 @@ proto_item_get_parent_nth(proto_item *ti, int gen) {
proto_item*
proto_tree_get_parent(proto_tree *tree) {
- /* dont bother if tree is not visible */
- if( (!tree) || (!(PTREE_DATA(tree)->visible)) )
+ if (!tree)
return (NULL);
return (proto_item*) tree;
}
proto_tree*
proto_tree_get_root(proto_tree *tree) {
- /* dont bother if tree is not visible */
- if( (!tree) || (!(PTREE_DATA(tree)->visible)) )
+ if (!tree)
return (NULL);
while (tree->parent) {
tree = tree->parent;