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
1331f66f
Commit
1331f66f
authored
Apr 16, 2019
by
Jean-Baptiste Mardelle
Browse files
improve detection of composition direction
parent
ed107a46
Pipeline
#2487
passed with stage
in 19 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/timelinecontroller.cpp
View file @
1331f66f
...
...
@@ -338,7 +338,7 @@ 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
lowerVideoTrackId
=
m_model
->
getPreviousVideoTrackIndex
(
tid
);
bool
revert
=
false
;
bool
revert
=
offset
>
clip_duration
/
2
;
if
(
lowerVideoTrackId
>
0
)
{
int
bottomId
=
m_model
->
getTrackById_const
(
lowerVideoTrackId
)
->
getClipByPosition
(
position
);
if
(
bottomId
>
0
)
{
...
...
@@ -348,7 +348,7 @@ int TimelineController::insertNewComposition(int tid, int clipId, int offset, co
if
(
test_duration
>
0
)
{
position
=
bottom
.
first
;
duration
=
test_duration
;
revert
=
true
;
revert
=
position
>
minimum
;
}
}
}
...
...
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