From b8d67b3d8e50523020150baa65c9d9fb402a110a Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 1 Apr 2014 09:17:30 -0700 Subject: [PATCH] Update row numbers after an order-changing commit --- src/ass_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++;