Update row numbers after an order-changing commit

This commit is contained in:
Thomas Goyne 2014-04-01 09:17:30 -07:00
parent caf5ac9cd7
commit b8d67b3d8e
1 changed files with 1 additions and 1 deletions

View File

@ -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++;