From 79df6ddfbe414dfddc77ed56da26acf200857713 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 19 Apr 2010 11:56:31 +0000 Subject: [PATCH] (run_stages): Update category code of glyphs if category table is changed. --- src/m17n-flt.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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; -- 1.7.10.4