don't set negative size in wxSizerItem::SetDimension
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
003fa4a7b8
commit
003b64a7ba
@ -354,6 +354,11 @@ void wxSizerItem::SetDimension( const wxPoint& pos_, const wxSize& size_ )
|
||||
size.y -= m_border;
|
||||
}
|
||||
|
||||
if (size.x < 0)
|
||||
size.x = 0;
|
||||
if (size.y < 0)
|
||||
size.y = 0;
|
||||
|
||||
m_rect = wxRect(pos, size);
|
||||
|
||||
switch ( m_kind )
|
||||
|
Loading…
Reference in New Issue
Block a user