Commit 11db9330 authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen

SequenceWorkflow: Fix erasing the same iterator twice

Signed-off-by: Hugo Beauzée-Luyssen's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 485efb19
......@@ -119,9 +119,12 @@ SequenceWorkflow::moveClip( const QUuid& uuid, quint32 trackId, qint64 pos )
else
{
ret = track->move( std::get<ClipTupleIndex::Position>( it.value() ), pos );
if ( ret == true )
{
m_clips.erase( it );
m_clips.insert( uuid, std::make_tuple( clip, trackId, pos ) );
}
}
m_clips.erase( it );
m_clips.insert( uuid, std::make_tuple( clip, trackId, pos ) );
// TODO: If we detect collision too strictly, there will be a problem if we want to move multiple
// clips at the same time.
return ret;
......
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