diff options
Diffstat (limited to 'src/extension/execution-env.cpp')
| -rw-r--r-- | src/extension/execution-env.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/extension/execution-env.cpp b/src/extension/execution-env.cpp index 7ed389195..f9e099c26 100644 --- a/src/extension/execution-env.cpp +++ b/src/extension/execution-env.cpp @@ -1,6 +1,7 @@ /* * Authors: * Ted Gould <ted@gould.cx> + * Abhishek Sharma * * Copyright (C) 2007-2008 Authors * @@ -162,14 +163,14 @@ ExecutionEnv::cancel (void) { void ExecutionEnv::undo (void) { - sp_document_cancel(_doc->doc()); + DocumentUndo::cancel(_doc->doc()); reselect(); return; } void ExecutionEnv::commit (void) { - sp_document_done(_doc->doc(), SP_VERB_NONE, _(_effect->get_name())); + DocumentUndo::done(_doc->doc(), SP_VERB_NONE, _(_effect->get_name())); Effect::set_last_effect(_effect); _effect->get_imp()->commitDocument(); killDocCache(); |
