(visual_order): Avoid re-ordering only combining glyphs.
authorhanda <handa>
Fri, 12 Mar 2004 07:59:15 +0000 (07:59 +0000)
committerhanda <handa>
Fri, 12 Mar 2004 07:59:15 +0000 (07:59 +0000)
src/draw.c

index 5012bd1..4faffe9 100644 (file)
@@ -127,8 +127,7 @@ visual_order (MGlyphString *gstring)
        levels[size] = 0;
       idx[size] = GLYPH_INDEX (g);
       logical[size++] = g++->c;
-      while (g->type != GLYPH_ANCHOR
-            && g->combining_code)
+      while (g->type != GLYPH_ANCHOR && g->combining_code)
        g++;
     }
 
@@ -185,8 +184,7 @@ visual_order (MGlyphString *gstring)
 #endif /* not HAVE_FRIBIDI */
       *(MGLYPH (gidx)) = glyphs[k];
       for (gidx++, k++;
-          (k < gstring->used - 1
-           && glyphs[k].combining_code);
+          k < gstring->used - 1 && glyphs[k].combining_code;
           gidx++, k++)
        {
          glyphs[k].bidi_level = levels[j];