(visual_order): Exclude the last anchor glyph from the
authorhanda <handa>
Tue, 20 Nov 2007 06:57:49 +0000 (06:57 +0000)
committerhanda <handa>
Tue, 20 Nov 2007 06:57:49 +0000 (06:57 +0000)
iteration.

src/draw.c

index 976b58b..a1942d1 100644 (file)
@@ -176,7 +176,7 @@ visual_order (MGlyphString *gstring)
 
   memcpy (glyphs, gstring->glyphs, sizeof (MGlyph) * gstring->used);
 
-  for (i = gidx = 0; i < gstring->used; gidx++)
+  for (i = gidx = 0; i < gstring->used - 1; gidx++)
     {
       int level = glyphs[i].bidi_level;