From 03d21d9053df4adb66a57c996e46759fc42f2004 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 2 May 2004 17:12:25 +0000 Subject: [PATCH] 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 --- src/os2/control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os2/control.cpp b/src/os2/control.cpp index ed246a1d4e..e161f7714d 100644 --- a/src/os2/control.cpp +++ b/src/os2/control.cpp @@ -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