From: handa Date: Mon, 19 Apr 2010 11:56:31 +0000 (+0000) Subject: (run_stages): Update category code of glyphs if X-Git-Tag: REL-1-6-1~5 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=79df6ddfbe414dfddc77ed56da26acf200857713;p=m17n%2Fm17n-lib.git (run_stages): Update category code of glyphs if category table is changed. --- diff --git a/src/m17n-flt.c b/src/m17n-flt.c index 2723f0b..644a0b6 100644 --- a/src/m17n-flt.c +++ b/src/m17n-flt.c @@ -2311,11 +2311,14 @@ run_stages (MFLTGlyphString *gstring, int from, int to, if (GET_COMBINED (g) || (prev_category && prev_category != ctx->stage->category)) - enc = (GET_ENCODED (g) - ? (g->c > 0 ? (int) mchartable_lookup (table, g->c) : 1) - : g->code - ? (int) mchartable_lookup (table, g->code) - : ' '); + { + enc = (GET_ENCODED (g) + ? (g->c > 0 ? (int) mchartable_lookup (table, g->c) : 1) + : g->code + ? (int) mchartable_lookup (table, g->code) + : ' '); + SET_CATEGORY_CODE (g, enc); + } else enc = GET_CATEGORY_CODE (g); ctx->encoded[i - from] = enc;