(mflt_run): If g->encoded is set, don't clear g->code.
authorhanda <handa>
Tue, 30 Dec 2008 23:29:26 +0000 (23:29 +0000)
committerhanda <handa>
Tue, 30 Dec 2008 23:29:26 +0000 (23:29 +0000)
src/m17n-flt.c

index 6c82679..45821a3 100644 (file)
@@ -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;
     }