X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/31d7fc0f9cb3f5913ecd4a039a816487a6753a93..046d682f0f684977b7ba933a128f5c84e06ded0e:/src/os2/control.cpp diff --git a/src/os2/control.cpp b/src/os2/control.cpp index f390b9c38b..d515341c84 100644 --- a/src/os2/control.cpp +++ b/src/os2/control.cpp @@ -108,14 +108,14 @@ bool wxControl::OS2CreateControl( (void) OS2GetStyle(GetWindowStyle(), &dwExstyle); } // - // All controls should have these styles (wxWindows creates all controls + // All controls should have these styles (wxWidgets creates all controls // visible by default) // if (m_isShown ) dwStyle |= WS_VISIBLE; wxWindow* pParent = GetParent(); - PSZ zClass; + PSZ zClass = ""; if (!pParent) return FALSE; @@ -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