From 97d7a85ed9312afbe959dcf888b26937c5f86c61 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 3 Oct 2005 13:34:04 +0000 Subject: [PATCH] (mdraw_glyph_info): Pay attention to the case that FROM is not at the beginning of line. --- src/draw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/draw.c b/src/draw.c index 4ea2041..382b5f6 100644 --- a/src/draw.c +++ b/src/draw.c @@ -2650,7 +2650,8 @@ mdraw_glyph_info (MFrame *frame, MText *mt, int from, int pos, info->prev_from = g_tmp->pos; } - else if (info->line_from > 0) + else if (info->line_from > 0 + && gstring->from > 0) { /* The logically previous glyph is on the previous line. */ MGlyphString *gst = get_gstring (frame, mt, gstring->from - 1, -- 1.7.10.4