From: handa Date: Tue, 20 Nov 2007 06:57:49 +0000 (+0000) Subject: (visual_order): Exclude the last anchor glyph from the X-Git-Tag: REL-1-5-0~42 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=71ba73754fb77a2e7d686c0945b2c77c5bb7d64d;p=m17n%2Fm17n-lib.git (visual_order): Exclude the last anchor glyph from the iteration. --- diff --git a/src/draw.c b/src/draw.c index 976b58b..a1942d1 100644 --- a/src/draw.c +++ b/src/draw.c @@ -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;