From d9118dc089e7d842bc5c288238e1b100c799fb63 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Sat, 1 May 2004 15:15:08 +0000 Subject: add PROTO_ITEM_SET_HIDDEN() and PROTO_ITEM_SET_GENERATED(), this sets flags for later rendering of the field data svn path=/trunk/; revision=10752 --- print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'print.c') diff --git a/print.c b/print.c index 02b723824e..b203040c91 100644 --- a/print.c +++ b/print.c @@ -1,7 +1,7 @@ /* print.c * Routines for printing packet analysis trees. * - * $Id: print.c,v 1.80 2004/04/26 15:58:33 gram Exp $ + * $Id: print.c,v 1.81 2004/05/01 15:15:08 ulfl Exp $ * * Gilbert Ramirez * @@ -209,7 +209,7 @@ void proto_tree_print_node(proto_node *node, gpointer data) gchar *label_ptr; /* Don't print invisible entries. */ - if (!fi->visible) + if (PROTO_ITEM_IS_HIDDEN(node)) return; /* was a free format label produced? */ @@ -389,7 +389,7 @@ proto_tree_print_node_pdml(proto_node *node, gpointer data) print_escaped_xml(pdata->fh, label_ptr); } - if(!fi->visible) { + if(PROTO_ITEM_IS_HIDDEN(node)) { fprintf(pdata->fh, "\" hide=\"yes"); } -- cgit v1.2.3