Match the parser's section order when constructing files for undo
This commit is contained in:
parent
cb8b107bd9
commit
7d1cd576d1
1 changed files with 4 additions and 4 deletions
|
@ -128,6 +128,10 @@ struct SubsController::UndoInfo {
|
||||||
c->ass->Line.push_back(*new AssInfo(info.first, info.second));
|
c->ass->Line.push_back(*new AssInfo(info.first, info.second));
|
||||||
for (auto const& style : styles)
|
for (auto const& style : styles)
|
||||||
c->ass->Line.push_back(*new AssStyle(style));
|
c->ass->Line.push_back(*new AssStyle(style));
|
||||||
|
for (auto const& attachment : fonts)
|
||||||
|
c->ass->Line.push_back(*new AssAttachment(attachment));
|
||||||
|
for (auto const& attachment : graphics)
|
||||||
|
c->ass->Line.push_back(*new AssAttachment(attachment));
|
||||||
for (auto const& event : events) {
|
for (auto const& event : events) {
|
||||||
auto copy = new AssDialogue(event);
|
auto copy = new AssDialogue(event);
|
||||||
c->ass->Line.push_back(*copy);
|
c->ass->Line.push_back(*copy);
|
||||||
|
@ -136,10 +140,6 @@ struct SubsController::UndoInfo {
|
||||||
if (binary_search(begin(selection), end(selection), copy->Id))
|
if (binary_search(begin(selection), end(selection), copy->Id))
|
||||||
new_sel.insert(copy);
|
new_sel.insert(copy);
|
||||||
}
|
}
|
||||||
for (auto const& attachment : graphics)
|
|
||||||
c->ass->Line.push_back(*new AssAttachment(attachment));
|
|
||||||
for (auto const& attachment : fonts)
|
|
||||||
c->ass->Line.push_back(*new AssAttachment(attachment));
|
|
||||||
|
|
||||||
c->subsGrid->BeginBatch();
|
c->subsGrid->BeginBatch();
|
||||||
c->selectionController->SetSelectedSet({ });
|
c->selectionController->SetSelectedSet({ });
|
||||||
|
|
Loading…
Reference in a new issue