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

Fix "remove space" not working on 1 frame space

parent 0bd5d505
Pipeline #139482 passed with stage
in 8 minutes and 11 seconds
......@@ -2061,6 +2061,9 @@ bool TimelineFunctions::requestDeleteBlankAt(const std::shared_ptr<TimelineItemM
int lastFrame = 0;
for (const auto &track: timeline->m_allTracks) {
if (!track->isLocked()) {
if (!track->isBlankAt(position)) {
return false;
}
lastFrame = track->getBlankStart(position);
if (lastFrame > spaceStart) {
spaceStart = lastFrame;
......@@ -2079,6 +2082,9 @@ bool TimelineFunctions::requestDeleteBlankAt(const std::shared_ptr<TimelineItemM
// Subtitle track
spaceStart = timeline->getSubtitleModel()->getBlankStart(position);
} else {
if (!timeline->getTrackById_const(trackId)->isBlankAt(position)) {
return false;
}
spaceStart = timeline->getTrackById_const(trackId)->getBlankStart(position);
}
}
......
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