Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
Kdenlive
Commits
960c51c2
Commit
960c51c2
authored
May 24, 2019
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use default composition duration instead of full clip length on composition creation
parent
efbf6bd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/timeline2/view/timelinecontroller.cpp
src/timeline2/view/timelinecontroller.cpp
+4
-1
No files found.
src/timeline2/view/timelinecontroller.cpp
View file @
960c51c2
...
...
@@ -343,7 +343,10 @@ int TimelineController::insertNewComposition(int tid, int clipId, int offset, co
}
}
position
=
qMin
(
minimum
+
clip_duration
-
1
,
position
);
int
duration
=
m_model
->
getTrackById_const
(
tid
)
->
suggestCompositionLength
(
position
);
int
duration
=
pCore
->
currentDoc
()
->
getFramePos
(
KdenliveSettings
::
transition_duration
());
if
(
duration
==
0
)
{
duration
=
m_model
->
getTrackById_const
(
tid
)
->
suggestCompositionLength
(
position
);
}
int
lowerVideoTrackId
=
m_model
->
getPreviousVideoTrackIndex
(
tid
);
bool
revert
=
offset
>
clip_duration
/
2
;
if
(
lowerVideoTrackId
>
0
)
{
...
...
Write
Preview
Markdown
is supported
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