From: handa Date: Thu, 10 Dec 2009 06:30:08 +0000 (+0000) Subject: (run_otf_category): Fix previous change. X-Git-Tag: merge-to-XML~17 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=65b5580b0432a188fac31cbdacb50ecffdd80eaf;p=m17n%2Fm17n-lib.git (run_otf_category): Fix previous change. --- diff --git a/src/m17n-flt.c b/src/m17n-flt.c index 6e77058..c0373f8 100644 --- a/src/m17n-flt.c +++ b/src/m17n-flt.c @@ -1998,6 +1998,9 @@ run_otf_category (int depth, MFLTOtfSpec *otf_spec, int from, int to, MFLTFont *font = ctx->font; int from_idx = ctx->out->used; + if (MDEBUG_FLAG () > 2) + MDEBUG_PRINT3 ("\n [FLT] %*s%s", depth, "", MSYMBOL_NAME (otf_spec->sym)); + if (! otf_spec->features[0] && ! otf_spec->features[1]) { /* Reset categories. */ @@ -2017,6 +2020,7 @@ run_otf_category (int depth, MFLTOtfSpec *otf_spec, int from, int to, ? (int) mchartable_lookup (table, g->code) : ' '); SET_CATEGORY_CODE (g, enc); + ctx->encoded[i - ctx->encoded_offset] = enc; } } return from; @@ -2025,9 +2029,6 @@ run_otf_category (int depth, MFLTOtfSpec *otf_spec, int from, int to, if (ctx->stage->category->feature_table.size == 0) return from; - if (MDEBUG_FLAG () > 2) - MDEBUG_PRINT3 ("\n [FLT] %*s%s", depth, "", MSYMBOL_NAME (otf_spec->sym)); - font->get_glyph_id (font, ctx->in, from, to); if (font->drive_otf) {