Commit cc9e6f0f authored by Ludovic Fauvet's avatar Ludovic Fauvet

timeline: fix a small bug in the free space search algorithm

parent 44474746
......@@ -508,7 +508,7 @@ TracksView::findPosition( AbstractGraphicsMediaItem *item, quint32 track, qint64
{
// Collision with an item of the same type
itemCollision = true;
if ( currentItem->trackNumber() >= track )
if ( currentItem->trackNumber() > track )
{
if ( track < 1 )
{
......@@ -518,7 +518,7 @@ TracksView::findPosition( AbstractGraphicsMediaItem *item, quint32 track, qint64
}
track -= 1;
}
else if ( currentItem->trackNumber() < track )
else if ( currentItem->trackNumber() <= track )
{
if ( track >= m_numVideoTrack - 1 )
{
......
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