Fix a wxWidgets alert (on wxWidgets 3.1.3)

This commit is contained in:
jean-pierre charras 2019-11-04 17:30:50 +01:00
parent 51ed01d765
commit 8621a1cf3a
1 changed files with 1 additions and 1 deletions

View File

@ -552,7 +552,7 @@ void GRID_TRICKS::onUpdateUI( wxUpdateUIEvent& event )
}
}
if( !cursorInSelectedRow )
if( !cursorInSelectedRow && cursorRow >= 0 )
m_grid->SelectRow( cursorRow );
}
}