From: handa Date: Tue, 30 Dec 2008 23:29:26 +0000 (+0000) Subject: (mflt_run): If g->encoded is set, don't clear g->code. X-Git-Tag: REL-1-5-4~20 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=228f73ab1f5c4efe7d3613cbdc7e52083e117c7b;p=m17n%2Fm17n-lib.git (mflt_run): If g->encoded is set, don't clear g->code. --- 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; }