Fix a wxWidgets alert

This commit is contained in:
jean-pierre charras 2019-11-20 10:01:45 +01:00
parent e299343807
commit 3827c16fde
1 changed files with 1 additions and 1 deletions

View File

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