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
a61fcd9b
Commit
a61fcd9b
authored
Mar 03, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix crash cutting group with composition.
CCBUG: 418378
parent
6229097d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinefunctions.cpp
View file @
a61fcd9b
...
...
@@ -212,7 +212,7 @@ bool TimelineFunctions::requestClipCut(const std::shared_ptr<TimelineItemModel>
if
(
count
>
0
&&
timeline
->
m_groups
->
isInGroup
(
clipId
))
{
// we now split the group hierarchy.
// As a splitting criterion, we compare start point with split position
auto
criterion
=
[
timeline
,
position
](
int
cid
)
{
return
timeline
->
get
Clip
Position
(
cid
)
<
position
;
};
auto
criterion
=
[
timeline
,
position
](
int
cid
)
{
return
timeline
->
get
Item
Position
(
cid
)
<
position
;
};
bool
res
=
true
;
for
(
const
int
topId
:
topElements
)
{
qDebug
()
<<
"// CHECKING REGROUP ELEMENT: "
<<
topId
<<
", ISCLIP: "
<<
timeline
->
isClip
(
topId
)
<<
timeline
->
isGroup
(
topId
);
...
...
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