Skip to content
GitLab
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
92fe66da
Commit
92fe66da
authored
Feb 09, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix pasted clips with negative speed have wrong in/out.
CCBUG: 417143
parent
0b8d30e7
Pipeline
#14765
passed with stage
in 20 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinefunctions.cpp
View file @
92fe66da
...
...
@@ -1446,12 +1446,6 @@ bool TimelineFunctions::pasteClips(const std::shared_ptr<TimelineItemModel> &tim
in
=
0
;
timeline
->
m_allClips
[
newId
]
->
m_producer
->
set
(
"length"
,
out
+
1
);
}
if
(
speed
<
0
)
{
// on negative speed clips, in/out are inverted
int
length
=
out
-
in
;
in
=
timeline
->
m_allClips
[
newId
]
->
getMaxDuration
()
-
out
;
out
=
in
+
length
;
}
timeline
->
m_allClips
[
newId
]
->
setInOut
(
in
,
out
);
int
targetId
=
prod
.
attribute
(
QStringLiteral
(
"id"
)).
toInt
();
correspondingIds
[
targetId
]
=
newId
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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