Merged with trunk R776

git-svn-id: svn://localhost/ardour2/branches/midi@777 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2006-08-10 01:22:45 +00:00
parent 38c7d34d8c
commit ab6f1ed9ba
110 changed files with 7360 additions and 785 deletions

View file

@ -28,6 +28,7 @@
#include <pbd/convert.h>
#include <pbd/error.h>
#include <pbd/memento_command.h>
#include <gtkmm/image.h>
#include <gdkmm/color.h>
@ -2878,8 +2879,8 @@ void
Editor::begin_reversible_command (string name)
{
if (session) {
UndoAction ua = get_memento();
session->begin_reversible_command (name, &ua);
before = &get_state();
session->begin_reversible_command (name);
}
}
@ -2887,8 +2888,7 @@ void
Editor::commit_reversible_command ()
{
if (session) {
UndoAction ua = get_memento();
session->commit_reversible_command (&ua);
session->commit_reversible_command (new MementoCommand<Editor>(*this, *before, get_state()));
}
}