From a630983d6831aaf841a938a94736732d2d2417cc Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 14 Jul 2004 05:19:04 +0000 Subject: [PATCH] (compose_glyph_string): Fix previous change. --- src/draw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/draw.c b/src/draw.c index f4003eb..4da7478 100644 --- a/src/draw.c +++ b/src/draw.c @@ -302,9 +302,10 @@ compose_glyph_string (MFrame *frame, MText *mt, int from, int to, || MGLYPH (last)->type != g_tmp.type) { g = MGLYPH (last); - while (g < gstring->glyphs + gstring->used) - g = mface__for_chars (script, language, charset, - g, gstring->glyphs + gstring->used, size); + if (g->type != GLYPH_ANCHOR) + while (g < gstring->glyphs + gstring->used) + g = mface__for_chars (script, language, charset, + g, gstring->glyphs + gstring->used, size); if (pos == to) break; last = gstring->used; -- 1.7.10.4