From c9732ded18e941580362a89fb681d2b34255d8fd Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 26 Jul 2004 12:52:17 +0000 Subject: [PATCH] (get_gstring): If cursor_width or cursor_bidi is changed, don't use a cache. --- src/draw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/draw.c b/src/draw.c index 8069d40..25e2867 100644 --- a/src/draw.c +++ b/src/draw.c @@ -1512,7 +1512,9 @@ get_gstring (MFrame *frame, MText *mt, int pos, int to, MDrawControl *control) || gstring->tick != frame->tick || memcmp (control, &gstring->control, (char *) (&control->with_cursor) - - (char *) (control))) + - (char *) (control)) + || control->cursor_width != gstring->control.cursor_width + || control->cursor_bidi != gstring->control.cursor_bidi) { mtext_detach_property (prop); gstring = NULL; -- 1.7.10.4