]> git.saurik.com Git - wxWidgets.git/commitdiff
Take the inverted coordinate system into account in wxFindMaxSize.
authorStefan Neis <Stefan.Neis@t-online.de>
Sun, 2 May 2004 17:12:25 +0000 (17:12 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sun, 2 May 2004 17:12:25 +0000 (17:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/control.cpp

index f390b9c38bcd051dade60380c0e7f6ff62f2ff5a..c9354af222b8161feb264597823c71ce9d8ffc8e 100644 (file)
@@ -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