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:
Paul Cornett 2006-09-06 03:01:17 +00:00
parent 003fa4a7b8
commit 003b64a7ba

View File

@ -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 )