From: erg Date: Wed, 26 Jan 2011 23:52:19 +0000 (+0000) Subject: Extend statistics to all fields X-Git-Tag: LAST_LIBGRAPH~32^2~1086 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ee90ef18b75ff4c40a8915ace7f5d6c22282a2a;p=graphviz Extend statistics to all fields --- diff --git a/lib/xdot/xdot.c b/lib/xdot/xdot.c index 040d4b667..14dcfbb70 100755 --- a/lib/xdot/xdot.c +++ b/lib/xdot/xdot.c @@ -701,6 +701,19 @@ int statXDot (xdot* x, xdot_stats* sp) case xd_text: sp->n_text++; break; + case xd_image: + sp->n_image++; + break; + case xd_fill_color: + case xd_pen_color: + sp->n_color++; + break; + case xd_font: + sp->n_font++; + break; + case xd_style: + sp->n_style++; + break; default : break; } diff --git a/lib/xdot/xdot.h b/lib/xdot/xdot.h index 23eb5bd2f..08f26c68b 100755 --- a/lib/xdot/xdot.h +++ b/lib/xdot/xdot.h @@ -108,6 +108,10 @@ typedef struct { int n_bezier; int n_bezier_pts; int n_text; + int n_font; + int n_style; + int n_color; + int n_image; } xdot_stats; /* ops are indexed by xop_kind */