Avoid setting a negative window size
This commit is contained in:
parent
54ed3abdad
commit
6f62907cae
1 changed files with 2 additions and 2 deletions
|
|
@ -1454,8 +1454,8 @@ void wxPropertyGridManager::RepaintDescBoxDecorations( wxDC& dc,
|
|||
|
||||
void wxPropertyGridManager::UpdateDescriptionBox( int new_splittery, int new_width, int new_height )
|
||||
{
|
||||
int use_hei = new_height-1;
|
||||
int use_width = new_width-6;
|
||||
int use_hei = wxMax(1, new_height - 1);
|
||||
int use_width = wxMax(1, new_width - 6);
|
||||
|
||||
// Fix help control positions.
|
||||
int cap_y = new_splittery+m_splitterHeight+5;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue