git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54337
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
y += BORDER;
width -= horizontalBorder*2;
height -= BORDER*2;
y += BORDER;
width -= horizontalBorder*2;
height -= BORDER*2;
+ if (width < 0) width = 0;
+ if (height < 0) height = 0;
wxSize sizeSearch(0,0);
wxSize sizeCancel(0,0);
wxSize sizeSearch(0,0);
wxSize sizeCancel(0,0);
cancelMargin = 0;
}
wxCoord textWidth = width - sizeSearch.x - sizeCancel.x - searchMargin - cancelMargin - 1;
cancelMargin = 0;
}
wxCoord textWidth = width - sizeSearch.x - sizeCancel.x - searchMargin - cancelMargin - 1;
+ if (textWidth < 0) textWidth = 0;
// position the subcontrols inside the client area
// position the subcontrols inside the client area