Ripple mode: fix undo of paste

Fix undo of region paste operations in ripple mode.
This commit is contained in:
Colin Fletcher 2014-07-01 18:27:22 +01:00
parent 83ae6beca5
commit cabd3783fe

View file

@ -1441,6 +1441,11 @@ RouteTimeAxisView::paste (framepos_t pos, float times, Selection& selection, siz
pl->ripple(pos, amount * times, boost::shared_ptr<Region>());
}
pl->paste (*p, pos, times);
vector<Command*> cmds;
pl->rdiff (cmds);
_session->add_commands (cmds);
_session->add_command (new StatefulDiffCommand (pl));
return true;