(compose_glyph_string): Don't get face property at the
authorhanda <handa>
Fri, 22 Oct 2004 05:41:38 +0000 (05:41 +0000)
committerhanda <handa>
Fri, 22 Oct 2004 05:41:38 +0000 (05:41 +0000)
end of M-text.

src/draw.c

index 7ddd55f..1d5ced0 100644 (file)
@@ -270,6 +270,8 @@ compose_glyph_string (MFrame *frame, MText *mt, int from, int to,
                                               (void **) faces, 64);
 
              mtext_prop_range (mt, Mface, pos, NULL, &face_change, 1);
+             if (face_change == mtext_nchars (mt))
+               face_change++;
              rface = (num > 0 ? mface__realize (frame, faces, num, size)
                       : default_rface);
            }