Set the new active line correctly after splitting by karaoke
This commit is contained in:
parent
0ccac34cb0
commit
a5c87908e1
1 changed files with 1 additions and 1 deletions
|
@ -1081,7 +1081,7 @@ struct edit_line_split_by_karaoke final : public validate_sel_nonempty {
|
||||||
|
|
||||||
AssDialogue *new_active = c->selectionController->GetActiveLine();
|
AssDialogue *new_active = c->selectionController->GetActiveLine();
|
||||||
if (!new_sel.count(c->selectionController->GetActiveLine()))
|
if (!new_sel.count(c->selectionController->GetActiveLine()))
|
||||||
new_active = *sel.begin();
|
new_active = *new_sel.begin();
|
||||||
c->selectionController->SetSelectionAndActive(std::move(new_sel), new_active);
|
c->selectionController->SetSelectionAndActive(std::move(new_sel), new_active);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue