Skip to content

Commit

Permalink
fix ripple delete transition for only 2 clips
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Oct 22, 2024
1 parent 83c9cb1 commit 473fd42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/docks/timelinedock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2253,8 +2253,7 @@ void TimelineDock::remove(int trackIndex, int clipIndex, bool ignoreTransition)
auto info = m_model.getClipInfo(trackIndex, clipIndex);
MAIN.undoStack()->push(
new Timeline::RemoveCommand(m_model, m_markersModel, trackIndex, clipIndex));
if (clipIndex > 0 && clipIndex + 1 < m_model.rowCount(m_model.index(trackIndex)) && info->producer
&& info->producer->is_valid()) {
if (clipIndex > 0 && info->producer && info->producer->is_valid()) {
// verify the clip after belongs to transition
Mlt::Tractor transition(*info->producer);
std::unique_ptr<Mlt::Producer> transitionClip(transition.track(1));
Expand Down

0 comments on commit 473fd42

Please sign in to comment.