From f94d4b67a0812c19441ac9f0a244b464d6d83d23 Mon Sep 17 00:00:00 2001 From: handa Date: Sat, 8 Dec 2007 02:11:20 +0000 Subject: [PATCH] (run_rule): Fix printing of debug info. Don't update TO for the rule of SRC_HAS_GLYPH. --- src/m17n-flt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/m17n-flt.c b/src/m17n-flt.c index a914cd5..10c67b4 100644 --- a/src/m17n-flt.c +++ b/src/m17n-flt.c @@ -1499,7 +1499,8 @@ run_rule (int depth, return 0; to = ctx->match_indices[rule->src.match_idx * 2 + 1]; if (MDEBUG_FLAG () > 2) - MDEBUG_PRINT3 ("\n [FLT] %*s(INDEX %d", depth, "", rule->src.match_idx); + MDEBUG_PRINT3 ("\n [FLT] %*s(SUBPART %d", depth, "", + rule->src.match_idx); } else if (rule->src_type == SRC_HAS_GLYPH) { @@ -1511,13 +1512,11 @@ run_rule (int depth, if (from >= to) return 0; code = GREF (ctx->in, from)->code; - to = from + 1; encoded = GREF (ctx->in, from)->encoded; } else { code = rule->src.supported_glyph; - to = from; encoded = 0; } if (! encoded) @@ -1536,6 +1535,8 @@ run_rule (int depth, || ! gstring.glyphs[0].encoded) return 0; } + if (MDEBUG_FLAG () > 2) + MDEBUG_PRINT3 ("\n [FLT] %*s(HAS-GLYPH %04X", depth, "", code); } else if (rule->src_type == SRC_OTF_SPEC) { -- 1.7.10.4