Commit ac5a8a4e authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix composition duration for clips at same position/length

parent 9e2a4bb9
...@@ -393,7 +393,7 @@ int TimelineController::insertNewComposition(int tid, int clipId, int offset, co ...@@ -393,7 +393,7 @@ int TimelineController::insertNewComposition(int tid, int clipId, int offset, co
revert = position > minimum; revert = position > minimum;
} }
} }
} else if (position > bottom.first) { } else if (position >= bottom.first) {
int test_duration = m_model->getTrackById_const(lowerVideoTrackId)->suggestCompositionLength(position); int test_duration = m_model->getTrackById_const(lowerVideoTrackId)->suggestCompositionLength(position);
if (test_duration > 0) { if (test_duration > 0) {
duration = qMin(test_duration, clip_duration); duration = qMin(test_duration, clip_duration);
......
Supports Markdown
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