tons of fixes for wxGTK/Univ - seems to work, more or less, now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -122,8 +122,16 @@ wxRect& wxRect::Inflate(wxCoord dx, wxCoord dy)
|
||||
|
||||
// check that we didn't make the rectangle invalid by accident (you almost
|
||||
// never want to have negative coords and never want negative size)
|
||||
wxASSERT_MSG( x >= 0 && y >= 0 && width >= 0 && height >= 0,
|
||||
_T("wxRect::Inflate() resulted in an invalid rectangle!") );
|
||||
if ( x < 0 )
|
||||
x = 0;
|
||||
if ( y < 0 )
|
||||
y = 0;
|
||||
|
||||
// what else can we do?
|
||||
if ( width < 0 )
|
||||
width = 0;
|
||||
if ( height < 0 )
|
||||
height = 0;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user