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

Unbreak spacer/remove space.

Fixes #1564
parent 3516c3e4
Pipeline #261103 failed with stage
in 5 minutes and 59 seconds
......@@ -434,6 +434,10 @@ std::pair<int, int> TimelineFunctions::requestSpacerStartOperation(const std::sh
QMapIterator<int, int> it(firstClipOnTrack);
int firstPos = -1;
if (firstClipOnTrack.isEmpty() && firstCid > -1) {
int clipPos = timeline->getItemPosition(firstCid);
spaceDuration = timeline->getTrackById_const(timeline->getItemTrackId(firstCid))->getBlankSizeAtPos(clipPos - 1);
}
while (it.hasNext()) {
it.next();
int clipPos = timeline->getItemPosition(it.value());
......
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