Fix the single-line-commit optimization

Originally committed to SVN as r6138.
This commit is contained in:
Thomas Goyne 2011-12-22 21:31:18 +00:00
parent 1c2abeae30
commit 95ad8c1fba
1 changed files with 2 additions and 1 deletions

View File

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