mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
(tty_draw_box): do nothing if width or heigth of box is less than 1.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
58cf4e735c
commit
2fe6ab5e9f
@ -179,6 +179,9 @@ tty_draw_box (int y, int x, int ys, int xs, gboolean single)
|
||||
{
|
||||
int y2, x2;
|
||||
|
||||
if (ys <= 0 || xs <= 0)
|
||||
return;
|
||||
|
||||
ys--;
|
||||
xs--;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user