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
4a22be2c
Commit
4a22be2c
authored
Oct 30, 2019
by
Jean-Baptiste Mardelle
Browse files
Another fix for composition duration on insert
parent
717f10ae
Pipeline
#9710
passed with stage
in 13 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/timelinecontroller.cpp
View file @
4a22be2c
...
...
@@ -395,12 +395,12 @@ int TimelineController::insertNewComposition(int tid, int clipId, int offset, co
}
}
}
else
if
(
position
>=
bottom
.
first
)
{
if
(
adjustOffset
)
{
position
-=
offset
;
}
int
test_duration
=
m_model
->
getTrackById_const
(
lowerVideoTrackId
)
->
suggestCompositionLength
(
position
);
if
(
test_duration
>
0
)
{
duration
=
qMin
(
test_duration
,
clip_duration
);
if
(
adjustOffset
)
{
position
-=
offset
;
}
}
}
}
else
if
(
!
adjustOffset
)
{
...
...
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