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
238f688e
Commit
238f688e
authored
Sep 28, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix remove space in all tracks with locked tracks.
Fixes
#1158
parent
815d8b46
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinefunctions.cpp
View file @
238f688e
...
...
@@ -2010,13 +2010,15 @@ bool TimelineFunctions::requestDeleteBlankAt(const std::shared_ptr<TimelineItemM
if
(
affectAllTracks
)
{
int
lastFrame
=
0
;
for
(
const
auto
&
track
:
timeline
->
m_allTracks
)
{
lastFrame
=
track
->
getBlankStart
(
position
);
if
(
lastFrame
>
spaceStart
)
{
spaceStart
=
lastFrame
;
if
(
!
track
->
isLocked
())
{
lastFrame
=
track
->
getBlankStart
(
position
);
if
(
lastFrame
>
spaceStart
)
{
spaceStart
=
lastFrame
;
}
}
}
// check subtitle track
if
(
timeline
->
getSubtitleModel
())
{
if
(
timeline
->
getSubtitleModel
()
&&
!
timeline
->
getSubtitleModel
()
->
isLocked
()
)
{
lastFrame
=
timeline
->
getSubtitleModel
()
->
getBlankStart
(
position
);
if
(
lastFrame
>
spaceStart
)
{
spaceStart
=
lastFrame
;
...
...
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