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);