mirror of https://github.com/odrling/Aegisub
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:
parent
db4a0e4c1e
commit
df3957393c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue