Skip to content
Snippets Groups Projects
Commit fb435d46 authored by luyikei's avatar luyikei
Browse files

SequenceWorkflow: Don't move if the position is the same as the new position

parent 16fcdab0
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,9 @@ SequenceWorkflow::moveClip( const QUuid& uuid, quint32 trackId, qint64 pos )
}
auto clip = std::get<ClipTupleIndex::Clip>( it.value() );
auto oldTrackId = std::get<ClipTupleIndex::TrackId>( it.value() );
auto oldPosition = std::get<ClipTupleIndex::Position>( it.value() );
if ( oldPosition == pos )
return true;
auto track = trackFromFormats( oldTrackId, clip->formats() );
bool ret = true;
if ( trackId != oldTrackId )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment