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
ea5f5465
Commit
ea5f5465
authored
Aug 09, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix error and corruption loading reverted mixes
parent
89b9d2e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/trackmodel.cpp
View file @
ea5f5465
...
...
@@ -2498,7 +2498,7 @@ bool TrackModel::loadMix(Mlt::Transition *t)
}
}
else
{
int
firstClipIn
=
m_allClips
[
cid1
]
->
getPosition
();
if
(
in
==
firstClipIn
)
{
if
(
in
==
firstClipIn
&&
in
!=
m_allClips
[
cid2
]
->
getPosition
()
)
{
// Incorrecty detected revert mix
std
::
swap
(
cid1
,
cid2
);
}
...
...
@@ -2762,7 +2762,7 @@ bool TrackModel::hasClipStart(int pos)
if
(
m_playlist
.
is_blank_at
(
pos
))
{
continue
;
}
if
(
m_playlist
.
get_clip_index_at
(
pos
)
!=
m_playlist
.
get_clip_index_at
(
pos
-
1
))
{
if
(
pos
==
0
||
m_playlist
.
get_clip_index_at
(
pos
)
!=
m_playlist
.
get_clip_index_at
(
pos
-
1
))
{
return
true
;
}
}
...
...
src/timeline2/view/qml/Track.qml
View file @
ea5f5465
...
...
@@ -45,7 +45,7 @@ Item{
if
(
model
.
mixDuration
>
0
)
{
// Clips with mix should be ordered related to their position so that the right clip of a clip mix is always on top (the mix UI is drawn over the right clip)
return
model
.
start
/
25
;
return
Math
.
round
(
model
.
start
/
25
)
+
1
;
}
if
(
root
.
activeTool
===
ProjectTool
.
SlipTool
&&
model
.
selected
)
{
...
...
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