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:
@@ -354,6 +354,11 @@ void wxSizerItem::SetDimension( const wxPoint& pos_, const wxSize& size_ )
|
|||||||
size.y -= m_border;
|
size.y -= m_border;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (size.x < 0)
|
||||||
|
size.x = 0;
|
||||||
|
if (size.y < 0)
|
||||||
|
size.y = 0;
|
||||||
|
|
||||||
m_rect = wxRect(pos, size);
|
m_rect = wxRect(pos, size);
|
||||||
|
|
||||||
switch ( m_kind )
|
switch ( m_kind )
|
||||||
|
Reference in New Issue
Block a user