(mdraw_glyph_info): Pay attention to the case that FROM
authorhanda <handa>
Mon, 3 Oct 2005 13:34:04 +0000 (13:34 +0000)
committerhanda <handa>
Mon, 3 Oct 2005 13:34:04 +0000 (13:34 +0000)
is not at the beginning of line.

src/draw.c

index 4ea2041..382b5f6 100644 (file)
@@ -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,