Fix composition position when bottom clip starts before and ends after top clip

parent 0591cc01
Pipeline #9689 passed with stage
in 26 minutes and 37 seconds
......@@ -398,6 +398,9 @@ int TimelineController::insertNewComposition(int tid, int clipId, int offset, co
int test_duration = m_model->getTrackById_const(lowerVideoTrackId)->suggestCompositionLength(position);
if (test_duration > 0) {
duration = qMin(test_duration, clip_duration);
if (adjustOffset) {
position -= offset;
}
}
}
} else if (!adjustOffset) {
......
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