Avoid using negative width
This commit is contained in:
parent
dae545ed29
commit
95ae67d1f4
@ -488,6 +488,7 @@ void wxSearchCtrl::LayoutControls()
|
||||
int horizontalBorder = 1 + ( sizeText.y - sizeText.y * 14 / 21 ) / 2;
|
||||
int x = horizontalBorder;
|
||||
width -= horizontalBorder*2;
|
||||
if (width < 0) width = 0;
|
||||
|
||||
wxSize sizeSearch(0,0);
|
||||
wxSize sizeCancel(0,0);
|
||||
|
Loading…
Reference in New Issue
Block a user