Skip to content

Commit

Permalink
Ensure clips that have a valid track container are added to it
Browse files Browse the repository at this point in the history
  • Loading branch information
sakertooth committed Nov 23, 2024
1 parent 8fea495 commit cc6b2b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/clips/SampleClipView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit cc6b2b1

Please sign in to comment.