mirror of https://github.com/odrling/Aegisub
Update row numbers after an order-changing commit
This commit is contained in:
parent
caf5ac9cd7
commit
b8d67b3d8e
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue