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
99009fa7
Commit
99009fa7
authored
Oct 19, 2019
by
Jean-Baptiste Mardelle
Browse files
Fix razor tool cutting wrong clip. Fixes
#380
parent
5bb69594
Pipeline
#9192
passed with stage
in 22 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/timelinecontroller.cpp
View file @
99009fa7
...
...
@@ -1044,15 +1044,17 @@ void TimelineController::cutClipUnderCursor(int position, int track)
QMutexLocker
lk
(
&
m_metaMutex
);
bool
foundClip
=
false
;
const
auto
selection
=
m_model
->
getCurrentSelection
();
for
(
int
cid
:
selection
)
{
if
(
m_model
->
isClip
(
cid
))
{
if
(
TimelineFunctions
::
requestClipCut
(
m_model
,
cid
,
position
))
{
foundClip
=
true
;
// Cutting clips in the selection group is handled in TimelineFunctions
break
;
if
(
track
==
-
1
)
{
for
(
int
cid
:
selection
)
{
if
(
m_model
->
isClip
(
cid
))
{
if
(
TimelineFunctions
::
requestClipCut
(
m_model
,
cid
,
position
))
{
foundClip
=
true
;
// Cutting clips in the selection group is handled in TimelineFunctions
break
;
}
}
else
{
qDebug
()
<<
"//// TODO: COMPOSITION CUT!!!"
;
}
}
else
{
qDebug
()
<<
"//// TODO: COMPOSITION CUT!!!"
;
}
}
if
(
!
foundClip
)
{
...
...
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