Commit 6095df5a authored by Ludovic Fauvet's avatar Ludovic Fauvet

timeline: fix a crash when moving two linked clip

parent 1872862e
......@@ -422,12 +422,12 @@ TracksView::moveMediaItem( AbstractGraphicsMediaItem *item, quint32 track, qint6
// Add missing tracks for the target
if ( item->groupItem()->mediaType() == MainWorkflow::AudioTrack )
{
while ( item->trackNumber() >= m_numAudioTrack )
while ( p.track() >= m_numAudioTrack )
addAudioTrack();
}
else if ( item->groupItem()->mediaType() == MainWorkflow::VideoTrack )
{
while ( item->trackNumber() >= m_numVideoTrack )
while ( p.track() >= m_numVideoTrack )
addVideoTrack();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment