switch (op) {
case Delete:
if (playlist->cut (time) != 0) {
+ if (Config->get_edit_mode() == Ripple)
+ playlist->ripple(time.start() + time.length(), -time.length(), NULL);
+ // no need to exclude any regions from rippling here
+
vector<Command*> cmds;
playlist->rdiff (cmds);
_session->add_commands (cmds);
case Cut:
if ((what_we_got = playlist->cut (time)) != 0) {
_editor.get_cut_buffer().add (what_we_got);
+ if (Config->get_edit_mode() == Ripple)
+ playlist->ripple(time.start() + time.length(), -time.length(), NULL);
+ // no need to exclude any regions from rippling here
+
vector<Command*> cmds;
playlist->rdiff (cmds);
_session->add_commands (cmds);
case Clear:
if ((what_we_got = playlist->cut (time)) != 0) {
+ if (Config->get_edit_mode() == Ripple)
+ playlist->ripple(time.start() + time.length(), -time.length(), NULL);
+ // no need to exclude any regions from rippling here
vector<Command*> cmds;
playlist->rdiff (cmds);