From fb8bb654a09f335861814b51816e576b0896d6bf Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Tue, 26 Jul 2022 08:33:05 -0700 Subject: [PATCH] timeline: add comment to recent code addition --- app/widget/timelinewidget/undo/timelineundoripple.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/app/widget/timelinewidget/undo/timelineundoripple.cpp b/app/widget/timelinewidget/undo/timelineundoripple.cpp index d940ea00d..71550f64c 100644 --- a/app/widget/timelinewidget/undo/timelineundoripple.cpp +++ b/app/widget/timelinewidget/undo/timelineundoripple.cpp @@ -64,6 +64,7 @@ void TrackRippleRemoveAreaCommand::prepare() // If it's getting trimmed, determine if it's actually getting spliced if (first_block_is_out_trimmed && first_block_is_in_trimmed) { if (dynamic_cast(first_block)) { + // As a rule, we don't split gaps, so we just treat it as a trim of the range requested trim_out_ = {first_block, first_block->length(), first_block->length() - range_.length()};