diff --git a/app/widget/timelinewidget/undo/timelineundosplit.cpp b/app/widget/timelinewidget/undo/timelineundosplit.cpp index 0d9c4e0c9..20cc8a803 100644 --- a/app/widget/timelinewidget/undo/timelineundosplit.cpp +++ b/app/widget/timelinewidget/undo/timelineundosplit.cpp @@ -38,14 +38,15 @@ void BlockSplitCommand::redo() if (!reconnect_tree_command_) { reconnect_tree_command_ = new MultiUndoCommand(); new_block_ = static_cast(Node::CopyNodeInGraph(block_, reconnect_tree_command_)); - if (ClipBlock *new_clip = dynamic_cast(new_block_)) { - ClipBlock *old_clip = static_cast(block_); - new_clip->waveform() = old_clip->waveform(); - } } reconnect_tree_command_->redo_now(); + if (ClipBlock *new_clip = dynamic_cast(new_block_)) { + ClipBlock *old_clip = static_cast(block_); + new_clip->waveform() = old_clip->waveform(); + } + // Determine our new lengths rational new_length = point_ - block_->in(); rational new_part_length = block_->out() - point_;