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
38a21d0e
Commit
38a21d0e
authored
Sep 13, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix possible crash detected by tests
parent
bc9de7c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinemodel.cpp
View file @
38a21d0e
...
...
@@ -2599,18 +2599,20 @@ int TimelineModel::requestItemResize(int itemId, int size, bool right, bool logU
all_items
.
insert
(
itemId
);
if
(
isClip
(
itemId
)
&&
logUndo
)
{
int
tid
=
getItemTrackId
(
itemId
);
if
(
right
)
{
if
(
getTrackById_const
(
tid
)
->
hasEndMix
(
itemId
))
{
if
(
tid
>
-
1
)
{
if
(
right
)
{
if
(
getTrackById_const
(
tid
)
->
hasEndMix
(
itemId
))
{
sync_mix
=
[
this
,
tid
,
logUndo
]()
{
getTrackById_const
(
tid
)
->
syncronizeMixes
(
logUndo
);
return
true
;
};
}
}
else
if
(
getTrackById_const
(
tid
)
->
hasStartMix
(
itemId
))
{
sync_mix
=
[
this
,
tid
,
logUndo
]()
{
getTrackById_const
(
tid
)
->
syncronizeMixes
(
logUndo
);
return
true
;
};
}
}
else
if
(
getTrackById_const
(
tid
)
->
hasStartMix
(
itemId
))
{
sync_mix
=
[
this
,
tid
,
logUndo
]()
{
getTrackById_const
(
tid
)
->
syncronizeMixes
(
logUndo
);
return
true
;
};
}
}
PUSH_LAMBDA
(
sync_mix
,
undo
);
...
...
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