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
f991f153
Commit
f991f153
authored
Jun 16, 2019
by
Jean-Baptiste Mardelle
Browse files
Fix crash on cutting group with a composition.
Fixes #258
parent
aa6e502b
Pipeline
#4377
passed with stage
in 14 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinefunctions.cpp
View file @
f991f153
...
...
@@ -164,6 +164,9 @@ bool TimelineFunctions::requestClipCut(const std::shared_ptr<TimelineItemModel>
// Remove locked items
std
::
unordered_set
<
int
>
clips
;
for
(
int
cid
:
clipselect
)
{
if
(
!
timeline
->
isClip
(
cid
))
{
continue
;
}
int
tk
=
timeline
->
getClipTrackId
(
cid
);
if
(
tk
!=
-
1
&&
!
timeline
->
getTrackById_const
(
tk
)
->
isLocked
())
{
clips
.
insert
(
cid
);
...
...
@@ -180,6 +183,9 @@ bool TimelineFunctions::requestClipCut(const std::shared_ptr<TimelineItemModel>
int
mainId
=
-
1
;
QList
<
int
>
clipsToCut
;
for
(
int
cid
:
clips
)
{
if
(
!
timeline
->
isClip
(
cid
))
{
continue
;
}
int
start
=
timeline
->
getClipPosition
(
cid
);
int
duration
=
timeline
->
getClipPlaytime
(
cid
);
if
(
start
<
position
&&
(
start
+
duration
)
>
position
)
{
...
...
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