When the active line is deselected via ctrl-clicking, set the active line to a line which is selected.

Originally committed to SVN as r4616.
This commit is contained in:
Thomas Goyne 2010-06-27 04:55:14 +00:00
parent 74d887a4c4
commit 11b30c8bb4

View file

@ -774,6 +774,9 @@ void BaseGrid::OnMouseEvent(wxMouseEvent &event) {
// Toggle selected
if (click && ctrl && !shift && !alt) {
SelectRow(row,true,!IsInSelection(row,0));
if (dlg == GetActiveLine()) {
SetActiveLine(GetDialogue(GetFirstSelRow()));
}
parentFrame->UpdateToolbar();
lastRow = row;
return;