mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-22 06:36:29 +01:00
Merged with trunk R846
Removed some overly verbose debug printing git-svn-id: svn://localhost/ardour2/branches/midi@847 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ea71de2784
commit
25d1670a61
86 changed files with 1414 additions and 999 deletions
|
|
@ -482,7 +482,7 @@ AutomationTimeAxisView::cut_copy_clear_one (AutomationLine& line, Selection& sel
|
|||
case Cut:
|
||||
if ((what_we_got = alist.cut (selection.time.front().start, selection.time.front().end)) != 0) {
|
||||
editor.get_cut_buffer().add (what_we_got);
|
||||
_session.add_command(new MementoCommand<AutomationList>(alist, before, alist.get_state()));
|
||||
_session.add_command(new MementoCommand<AutomationList>(alist, &before, &alist.get_state()));
|
||||
ret = true;
|
||||
}
|
||||
break;
|
||||
|
|
@ -494,7 +494,7 @@ AutomationTimeAxisView::cut_copy_clear_one (AutomationLine& line, Selection& sel
|
|||
|
||||
case Clear:
|
||||
if ((what_we_got = alist.cut (selection.time.front().start, selection.time.front().end)) != 0) {
|
||||
_session.add_command(new MementoCommand<AutomationList>(alist, before, alist.get_state()));
|
||||
_session.add_command(new MementoCommand<AutomationList>(alist, &before, &alist.get_state()));
|
||||
delete what_we_got;
|
||||
what_we_got = 0;
|
||||
ret = true;
|
||||
|
|
@ -526,7 +526,7 @@ AutomationTimeAxisView::reset_objects_one (AutomationLine& line, PointSelection&
|
|||
{
|
||||
AutomationList& alist (line.the_list());
|
||||
|
||||
_session.add_command (new MementoUndoCommand<AutomationList>(alist, alist.get_state()));
|
||||
_session.add_command (new MementoCommand<AutomationList>(alist, &alist.get_state(), 0));
|
||||
|
||||
for (PointSelection::iterator i = selection.begin(); i != selection.end(); ++i) {
|
||||
|
||||
|
|
@ -569,7 +569,7 @@ AutomationTimeAxisView::cut_copy_clear_objects_one (AutomationLine& line, PointS
|
|||
case Cut:
|
||||
if ((what_we_got = alist.cut ((*i).start, (*i).end)) != 0) {
|
||||
editor.get_cut_buffer().add (what_we_got);
|
||||
_session.add_command (new MementoCommand<AutomationList>(alist, before, alist.get_state()));
|
||||
_session.add_command (new MementoCommand<AutomationList>(alist, &before, &alist.get_state()));
|
||||
ret = true;
|
||||
}
|
||||
break;
|
||||
|
|
@ -581,7 +581,7 @@ AutomationTimeAxisView::cut_copy_clear_objects_one (AutomationLine& line, PointS
|
|||
|
||||
case Clear:
|
||||
if ((what_we_got = alist.cut ((*i).start, (*i).end)) != 0) {
|
||||
_session.add_command (new MementoCommand<AutomationList>(alist, before, alist.get_state()));
|
||||
_session.add_command (new MementoCommand<AutomationList>(alist, &before, &alist.get_state()));
|
||||
delete what_we_got;
|
||||
what_we_got = 0;
|
||||
ret = true;
|
||||
|
|
@ -640,7 +640,7 @@ AutomationTimeAxisView::paste_one (AutomationLine& line, jack_nframes_t pos, flo
|
|||
|
||||
XMLNode &before = alist.get_state();
|
||||
alist.paste (copy, pos, times);
|
||||
_session.add_command (new MementoCommand<AutomationList>(alist, before, alist.get_state()));
|
||||
_session.add_command (new MementoCommand<AutomationList>(alist, &before, &alist.get_state()));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue