Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
27a2a7b6
Commit
27a2a7b6
authored
Nov 04, 2022
by
Jean-Baptiste Mardelle
Browse files
Unbreak spacer/remove space.
Fixes
#1564
parent
3516c3e4
Pipeline
#261103
failed with stage
in 5 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinefunctions.cpp
View file @
27a2a7b6
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment