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:
Vadim Zeitlin
2001-07-03 19:38:19 +00:00
parent 67d95e11cf
commit 3379ed3789
56 changed files with 1315 additions and 932 deletions

View File

@@ -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;
}