]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/editors.cpp
Avoid redraw artifacts from the border after resizing
[wxWidgets.git] / 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);