]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed crash when expanding/collapsing categories too quickly (re-entrancy issue)
authorJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 23 Dec 2008 20:09:19 +0000 (20:09 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 23 Dec 2008 20:09:19 +0000 (20:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/editors.cpp

index 87ea4c0d882769f996f56d3b6f065df7dafc28dd..d3a4418c6b3079daf8e264898ad26002ff49437c 100644 (file)
@@ -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);