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

Use default composition duration instead of full clip length on composition creation

parent efbf6bd1
......@@ -343,7 +343,10 @@ int TimelineController::insertNewComposition(int tid, int clipId, int offset, co
}
}
position = qMin(minimum + clip_duration - 1, position);
int duration = m_model->getTrackById_const(tid)->suggestCompositionLength(position);
int duration = pCore->currentDoc()->getFramePos(KdenliveSettings::transition_duration());
if (duration == 0) {
duration = m_model->getTrackById_const(tid)->suggestCompositionLength(position);
}
int lowerVideoTrackId = m_model->getPreviousVideoTrackIndex(tid);
bool revert = offset > clip_duration / 2;
if (lowerVideoTrackId > 0) {
......
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