From: Jaakko Salli Date: Fri, 30 Jan 2009 17:07:18 +0000 (+0000) Subject: Let's make sure embedded wxPropertyGrid does not get negative size X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/253b70f1aa1a32096d295896855cef4c00ac768c?ds=inline Let's make sure embedded wxPropertyGrid does not get negative size git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/propgrid/manager.cpp b/src/propgrid/manager.cpp index 72c53ff64f..cb2c519d70 100644 --- a/src/propgrid/manager.cpp +++ b/src/propgrid/manager.cpp @@ -1118,6 +1118,8 @@ void wxPropertyGridManager::RecalculatePositions( int width, int height ) if ( m_iFlags & wxPG_FL_INITIALIZED ) { int pgh = propgridBottomY - propgridY; + if ( pgh < 0 ) + pgh = 0; m_pPropGrid->SetSize( 0, propgridY, width, pgh ); m_extraHeight = height - pgh;