From aace2c4f96b32adc03ec4f90fba0368a258a5dcb Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Tue, 23 Dec 2008 20:09:19 +0000 Subject: [PATCH] Fixed crash when expanding/collapsing categories too quickly (re-entrancy issue) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/editors.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index 87ea4c0d88..d3a4418c6b 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -1577,6 +1577,9 @@ void wxPropertyGrid::CorrectEditorWidgetSizeX() void wxPropertyGrid::CorrectEditorWidgetPosY() { + if ( m_selColumn == -1 ) + return; + if ( m_selected && (m_wndEditor || m_wndEditor2) ) { wxRect r = GetEditorWidgetRect(m_selected, m_selColumn);