From 53955e9632bb756b855745c00ae859f7ed7b3adf Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Tue, 31 Mar 2020 02:23:00 +1100 Subject: [PATCH] timeline: fixed array index out of bounds bug --- app/widget/timelinewidget/undo/undo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/widget/timelinewidget/undo/undo.cpp b/app/widget/timelinewidget/undo/undo.cpp index 2af2a2fbc..25787026a 100644 --- a/app/widget/timelinewidget/undo/undo.cpp +++ b/app/widget/timelinewidget/undo/undo.cpp @@ -272,7 +272,7 @@ void TrackRippleRemoveAreaCommand::undo_internal() } remove_block_commands_.clear(); - for (int i=removed_blocks_.size();i>=0;i--) { + for (int i=removed_blocks_.size()-1;i>=0;i--) { Block* remove_block = removed_blocks_.at(i); if (trim_in_) {