Another fix for composition duration on insert

parent 717f10ae
Pipeline #9710 passed with stage
in 13 minutes and 57 seconds
......@@ -395,12 +395,12 @@ int TimelineController::insertNewComposition(int tid, int clipId, int offset, co
}
}
} else if (position >= bottom.first) {
if (adjustOffset) {
position -= offset;
}
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