diff --git a/src/os2/control.cpp b/src/os2/control.cpp index f390b9c38b..c9354af222 100644 --- a/src/os2/control.cpp +++ b/src/os2/control.cpp @@ -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