From cc6b2b1f55b8fbd71059d6be7d1d01763fa0b340 Mon Sep 17 00:00:00 2001 From: saker Date: Sat, 23 Nov 2024 10:47:35 -0500 Subject: [PATCH] Ensure clips that have a valid track container are added to it --- src/gui/clips/SampleClipView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/clips/SampleClipView.cpp b/src/gui/clips/SampleClipView.cpp index a7251be8de6..dea7a28475d 100644 --- a/src/gui/clips/SampleClipView.cpp +++ b/src/gui/clips/SampleClipView.cpp @@ -363,6 +363,7 @@ bool SampleClipView::splitClip( const TimePos pos ) m_clip->getTrack()->saveJournallingState( false ); auto rightClip = new SampleClip(*m_clip); + m_clip->getTrack()->addClip(rightClip); m_clip->changeLength( splitPos - m_initialClipPos );