mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(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:
parent
d88f439a69
commit
4faf4cb2d7
@ -446,9 +446,7 @@ 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);
|
||||
widget_draw (w);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user