properly handle undo/redo - note that your ObjectModel MUST implement CopyTo() properly in order to make Undo/Redo work as expected!
This commit is contained in:
parent
ac5c730c85
commit
782345c5d2
@ -418,7 +418,7 @@ namespace UniversalEditor.UserInterface
|
||||
}
|
||||
|
||||
// push the new edit
|
||||
EDITINFO edit = new EDITINFO(null, null, mvarObjectModel);
|
||||
EDITINFO edit = new EDITINFO(null, null, mvarObjectModel.Clone() as ObjectModel);
|
||||
undo.Push(edit);
|
||||
|
||||
// clear out all the redos
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user