mirror of https://github.com/odrling/Aegisub
Fix combine lines commands
This commit is contained in:
parent
c93d38cc34
commit
393d1dd269
|
@ -750,9 +750,9 @@ static void combine_lines(agi::Context *c, void (*combiner)(AssDialogue *, AssDi
|
|||
|
||||
AssDialogue *first = sel[0];
|
||||
for (size_t i = 1; i < sel.size(); ++i) {
|
||||
combiner(first, sel[1]);
|
||||
first->End = std::max(first->End, sel[1]->End);
|
||||
delete sel[1];
|
||||
combiner(first, sel[i]);
|
||||
first->End = std::max(first->End, sel[i]->End);
|
||||
delete sel[i];
|
||||
}
|
||||
|
||||
c->selectionController->SetSelectionAndActive({first}, first);
|
||||
|
|
Loading…
Reference in New Issue