Fix a wxWidgets alert (on wxWidgets 3.1.3)
This commit is contained in:
parent
51ed01d765
commit
8621a1cf3a
|
@ -552,7 +552,7 @@ void GRID_TRICKS::onUpdateUI( wxUpdateUIEvent& event )
|
|||
}
|
||||
}
|
||||
|
||||
if( !cursorInSelectedRow )
|
||||
if( !cursorInSelectedRow && cursorRow >= 0 )
|
||||
m_grid->SelectRow( cursorRow );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue