mirror of https://github.com/odrling/Aegisub
Fix the single-line-commit optimization
Originally committed to SVN as r6138.
This commit is contained in:
parent
1c2abeae30
commit
95ad8c1fba
|
@ -743,7 +743,8 @@ int AssFile::Commit(wxString desc, int type, int amendId, AssEntry *single_line)
|
|||
++this_it;
|
||||
++undo_it;
|
||||
}
|
||||
**undo_it = *single_line;
|
||||
delete *undo_it;
|
||||
*undo_it = single_line->Clone();
|
||||
}
|
||||
else {
|
||||
UndoStack.back() = *this;
|
||||
|
|
Loading…
Reference in New Issue