diff --git a/src/ass_file.cpp b/src/ass_file.cpp index f1d015a0a..e3b217c7c 100644 --- a/src/ass_file.cpp +++ b/src/ass_file.cpp @@ -164,7 +164,7 @@ AssStyle *AssFile::GetStyle(std::string const& name) { } int AssFile::Commit(wxString const& desc, int type, int amend_id, AssDialogue *single_line) { - if (type == COMMIT_NEW || (type & COMMIT_DIAG_ADDREM)) { + if (type == COMMIT_NEW || (type & COMMIT_DIAG_ADDREM) || (type & COMMIT_ORDER)) { int i = 0; for (auto& event : Events) event.Row = i++;