Commit d976963c authored by Ludovic Fauvet's avatar Ludovic Fauvet

Fix a crash during clip initial placement

The crash occured when the first known position of the newly added clip
was exactly at the position of another one.
parent 98f57121
...@@ -215,7 +215,7 @@ void TracksView::moveMediaItem( AbstractGraphicsMediaItem* item, int track, int ...@@ -215,7 +215,7 @@ void TracksView::moveMediaItem( AbstractGraphicsMediaItem* item, int track, int
{ {
// Collision with an item of the same type // Collision with an item of the same type
itemCollision = true; itemCollision = true;
if ( currentItem->trackNumber() > track ) if ( currentItem->trackNumber() >= track )
{ {
if ( track < 1 ) if ( track < 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