forked from mia/Aegisub
Fix the single-line-commit optimization
Originally committed to SVN as r6138.
This commit is contained in:
parent
1c2abeae30
commit
95ad8c1fba
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue