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
149cdf5e
Commit
149cdf5e
authored
Nov 21, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix cannot move clip left when only 1 frame space
parent
3e6d06ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinemodel.cpp
View file @
149cdf5e
...
...
@@ -837,6 +837,7 @@ bool TimelineModel::requestClipMove(int clipId, int trackId, int position, bool
Q_ASSERT
(
undone
);
qWarning
()
<<
"clip deletion failed"
;
return
false
;
}
else
{
}
}
ok
=
ok
&&
getTrackById
(
trackId
)
->
requestClipInsertion
(
clipId
,
position
,
updateView
,
finalMove
,
local_undo
,
local_redo
,
groupMove
,
allowedClipMixes
);
...
...
src/timeline2/model/trackmodel.cpp
View file @
149cdf5e
...
...
@@ -147,7 +147,7 @@ Fun TrackModel::requestClipInsertion_lambda(int clipId, int position, bool updat
if
(
auto
ptr
=
m_parent
.
lock
())
{
Q_ASSERT
(
ptr
->
getClipPtr
(
clipId
)
->
getCurrentTrackId
()
==
-
1
);
target_playlist
=
ptr
->
getClipPtr
(
clipId
)
->
getSubPlaylistIndex
();
length
=
ptr
->
getClipPtr
(
clipId
)
->
getPlaytime
();
length
=
ptr
->
getClipPtr
(
clipId
)
->
getPlaytime
()
-
1
;
/*if (target_playlist == 1 && ptr->getClipPtr(clipId)->getMixDuration() == 0) {
target_playlist = 0;
}*/
...
...
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