timeline: replace all with gaps before placing when nudging

Fixes #2012
This commit is contained in:
itsmattkc
2022-08-17 16:14:36 -07:00
parent 9cad108d14
commit 78c262fbc9
@@ -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));
}