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
66b12e2e
Commit
66b12e2e
authored
Jan 29, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix clip with mix transition cannot be cut in some circumstances
parent
64aa0b72
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinefunctions.cpp
View file @
66b12e2e
...
...
@@ -151,6 +151,7 @@ bool TimelineFunctions::processClipCut(const std::shared_ptr<TimelineItemModel>
res
=
res
&&
timeline
->
requestItemResize
(
newId
,
duration
-
newDuration
,
false
,
true
,
undo
,
redo
);
// The next requestclipmove does not check for duration change since we don't invalidate timeline, so check duration change now
bool
durationChanged
=
trackDuration
!=
timeline
->
getTrackById_const
(
trackId
)
->
trackDuration
();
timeline
->
m_allClips
[
newId
]
->
setSubPlaylistIndex
(
timeline
->
m_allClips
[
clipId
]
->
getSubPlaylistIndex
(),
trackId
);
res
=
res
&&
timeline
->
requestClipMove
(
newId
,
trackId
,
position
,
true
,
true
,
false
,
true
,
undo
,
redo
);
if
(
timeline
->
getTrackById_const
(
trackId
)
->
hasEndMix
(
clipId
))
{
...
...
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