Take the inverted coordinate system into account in wxFindMaxSize.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@27069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -283,10 +283,10 @@ void wxFindMaxSize(
|
||||
if (nRight > pRect->xRight)
|
||||
pRect->xRight = nRight;
|
||||
|
||||
if (nTop < pRect->yTop)
|
||||
if (nTop > pRect->yTop)
|
||||
pRect->yTop = nTop;
|
||||
|
||||
if (nBottom > pRect->yBottom)
|
||||
if (nBottom < pRect->yBottom)
|
||||
pRect->yBottom = nBottom;
|
||||
} // end of wxFindMaxSize
|
||||
|
||||
|
Reference in New Issue
Block a user