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

View file

@ -743,7 +743,8 @@ int AssFile::Commit(wxString desc, int type, int amendId, AssEntry *single_line)
++this_it; ++this_it;
++undo_it; ++undo_it;
} }
**undo_it = *single_line; delete *undo_it;
*undo_it = single_line->Clone();
} }
else { else {
UndoStack.back() = *this; UndoStack.back() = *this;