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
5de71c28
Commit
5de71c28
authored
Nov 11, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix remove space.
Related to
#1564
parent
22f41af5
Pipeline
#265710
failed with stage
in 12 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinefunctions.cpp
View file @
5de71c28
...
...
@@ -338,7 +338,6 @@ std::pair<int, int> TimelineFunctions::requestSpacerStartOperation(const std::sh
std
::
transform
(
clips
.
begin
(),
clips
.
end
(),
std
::
inserter
(
roots
,
roots
.
begin
()),
[
&
](
int
id
)
{
return
timeline
->
m_groups
->
getRootId
(
id
);
});
std
::
unordered_set
<
int
>
groupsToRemove
;
int
firstCid
=
-
1
;
int
firstPosition
=
-
1
;
int
spaceDuration
=
-
1
;
std
::
unordered_set
<
int
>
toSelect
;
// List all clips involved in the spacer operation
...
...
@@ -411,9 +410,11 @@ std::pair<int, int> TimelineFunctions::requestSpacerStartOperation(const std::sh
}
else
{
// Find first clip on track
int
pos
=
timeline
->
getItemPosition
(
r
);
if
(
firstPosition
==
-
1
||
pos
<
firstPosition
)
{
firstCid
=
r
;
firstPosition
=
pos
;
int
tid
=
timeline
->
getItemTrackId
(
r
);
if
(
!
firstClipOnTrack
.
contains
(
tid
))
{
firstClipOnTrack
.
insert
(
tid
,
r
);
}
else
if
(
timeline
->
getItemPosition
(
firstClipOnTrack
.
value
(
tid
))
>
pos
)
{
firstClipOnTrack
.
insert
(
tid
,
r
);
}
}
}
...
...
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