From 71ba73754fb77a2e7d686c0945b2c77c5bb7d64d Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 20 Nov 2007 06:57:49 +0000 Subject: [PATCH] (visual_order): Exclude the last anchor glyph from the iteration. --- src/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.10.4