commit c7e027881d1cac1182f26fd91fed899e870951d6
parent 755f762adae654af6b450b20775a0dd96352536a
Author: Michael Savage <mikejsavage@gmail.com>
Date: Wed, 6 Mar 2019 22:53:27 +0200
Fix crash when minimising on Windows
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/textbox.cc b/src/textbox.cc
@@ -296,7 +296,7 @@ static bool inside_selection( int col, int row, int start_col, int start_row, in
}
void textbox_draw( TextBox * tb ) {
- if( tb->w == 0 || tb->h == 0 )
+ if( tb->w <= 0 || tb->h <= 0 )
return;
ui_fill_rect( tb->x, tb->y, tb->w, tb->h, COLOUR_BG, false );