(widget_set_size): call widget_draw() to get rid of code duplication.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2019-08-11 14:25:13 +03:00
parent d88f439a69
commit 4faf4cb2d7

View File

@ -446,8 +446,6 @@ widget_set_size (Widget * w, int y, int x, int lines, int cols)
WRect r = { y, x, lines, cols };
send_message (w, NULL, MSG_RESIZE, 0, &r);
if (w->owner != NULL && widget_get_state (WIDGET (w->owner), WST_ACTIVE))
widget_draw (w);
}