From f23f0613ec4a31fc5c04bb86affcdadd74a21757 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Fri, 5 Apr 2013 11:26:48 +0400 Subject: [PATCH] Ticket #2991: fix redraw of WLabel after text change. Signed-off-by: Andrew Borodin --- lib/widget/label.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widget/label.c b/lib/widget/label.c index 965fbcfaf..9201f202e 100644 --- a/lib/widget/label.c +++ b/lib/widget/label.c @@ -182,10 +182,10 @@ label_set_text (WLabel * label, const char *text) } } + widget_redraw (w); + if (newcols < w->cols) w->cols = newcols; - - widget_redraw (w); } /* --------------------------------------------------------------------------------------------- */