Take the inverted coordinate system into account in wxFindMaxSize.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a00ffdf1c6
commit
09990d5a4f
@ -284,10 +284,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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user