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
3ab6191c
Commit
3ab6191c
authored
Jan 10, 2022
by
Jean-Baptiste Mardelle
Browse files
Make it easier to drag a same track composition (include snapping point)
parent
4776ff5b
Pipeline
#121360
passed with stage
in 6 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/trackmodel.cpp
View file @
3ab6191c
...
...
@@ -2390,8 +2390,9 @@ int TrackModel::isOnCut(int cid)
{
if
(
auto
ptr
=
m_parent
.
lock
())
{
std
::
shared_ptr
<
CompositionModel
>
composition
=
ptr
->
getCompositionPtr
(
cid
);
int
startPos
=
composition
->
getPosition
();
int
endPos
=
startPos
+
composition
->
getPlaytime
()
-
1
;
// Start and end pos are incremented by 1 to account snapping
int
startPos
=
composition
->
getPosition
()
-
1
;
int
endPos
=
startPos
+
composition
->
getPlaytime
()
+
1
;
int
cid1
=
getClipByPosition
(
startPos
);
int
cid2
=
getClipByPosition
(
endPos
);
if
(
cid1
==
-
1
||
cid2
==
-
1
||
cid1
==
cid2
)
{
...
...
Eugen Mohr
@emohr
mentioned in issue
#1266 (closed)
·
Jan 10, 2022
mentioned in issue
#1266 (closed)
mentioned in issue #1266
Toggle commit list
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