Set extendRow even when active_line doesn't change

After shift-clicking on the grid the row to extend from doesn't equal
the active line, and clicking on the current active line to deselect all
other lines need to update the extend row.
This commit is contained in:
Thomas Goyne 2014-02-01 20:27:41 -08:00
parent 4fae315e1b
commit 043428d153
1 changed files with 3 additions and 1 deletions

View File

@ -1036,8 +1036,10 @@ void BaseGrid::SetActiveLine(AssDialogue *new_line) {
AnnounceActiveLineChanged(active_line);
MakeRowVisible(GetDialogueIndex(active_line));
Refresh(false);
extendRow = GetDialogueIndex(new_line);
}
// extendRow may not equal the active row if it was set via a shift-click,
// so update it even if the active line didn't change
extendRow = GetDialogueIndex(new_line);
}
void BaseGrid::SetSelectionAndActive(Selection const& new_selection, AssDialogue *new_line) {