From 78c262fbc99216ffa9a22351bb97256640d642e8 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Wed, 17 Aug 2022 16:14:26 -0700 Subject: [PATCH] timeline: replace all with gaps before placing when nudging Fixes #2012 --- app/widget/timelinewidget/timelinewidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/widget/timelinewidget/timelinewidget.cpp b/app/widget/timelinewidget/timelinewidget.cpp index 18dc32441..31312764d 100644 --- a/app/widget/timelinewidget/timelinewidget.cpp +++ b/app/widget/timelinewidget/timelinewidget.cpp @@ -1314,6 +1314,9 @@ void TimelineWidget::NudgeInternal(rational amount) foreach (Block* b, selected_blocks_) { command->add_child(new TrackReplaceBlockWithGapCommand(b->track(), b, false)); + } + + foreach (Block* b, selected_blocks_) { command->add_child(new TrackPlaceBlockCommand(sequence()->track_list(b->track()->type()), b->track()->Index(), b, b->in() + amount)); }