From 228f73ab1f5c4efe7d3613cbdc7e52083e117c7b Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 30 Dec 2008 23:29:26 +0000 Subject: [PATCH] (mflt_run): If g->encoded is set, don't clear g->code. --- src/m17n-flt.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/m17n-flt.c b/src/m17n-flt.c index 6c82679..45821a3 100644 --- a/src/m17n-flt.c +++ b/src/m17n-flt.c @@ -2558,9 +2558,12 @@ mflt_run (MFLTGlyphString *gstring, int from, int to, for (i = from; i < to; i++) { g = GREF (gstring, i); - c = g->c; - memset (g, 0, sizeof (MFLTGlyph)); - g->code = g->c = c; + if (! g->encoded) + { + c = g->c; + memset (g, 0, sizeof (MFLTGlyph)); + g->code = g->c = c; + } g->from = g->to = i; } -- 1.7.10.4