From de1e437f7d4e464882a54d8ca4da618cefda3f96 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 29 Oct 2007 12:14:49 +0000 Subject: [PATCH] (dump_chain_class_set_list): Ignore an element whose offset is zero. --- example/otfdump.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/example/otfdump.c b/example/otfdump.c index fc5eb72..5189771 100644 --- a/example/otfdump.c +++ b/example/otfdump.c @@ -711,13 +711,14 @@ dump_chain_class_set_list (int indent, OTF_ChainClassSet *set, int count) IPRINT ("(ChainClassSetCount %d)", count); for (i = 0; i < count; i++) - { - IPRINT ("(ChainClassSet (%d)", i); - dump_chain_class_rule_list (indent + 1, - set[i].ChainClassRule, - set[i].ChainClassRuleCnt); - printf (")"); - } + if (set[i].offset) + { + IPRINT ("(ChainClassSet (%d)", i); + dump_chain_class_rule_list (indent + 1, + set[i].ChainClassRule, + set[i].ChainClassRuleCnt); + printf (")"); + } } -- 1.7.10.4