From 253b70f1aa1a32096d295896855cef4c00ac768c Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Fri, 30 Jan 2009 17:07:18 +0000 Subject: [PATCH] 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 --- src/propgrid/manager.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.50.0