Skip to content
GitLab
Menu
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
93c565b2
Commit
93c565b2
authored
Feb 18, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinefunctions.cpp
View file @
93c565b2
...
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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