mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
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…
x
Reference in New Issue
Block a user