Commit 149cdf5e authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix cannot move clip left when only 1 frame space

parent 3e6d06ea
......@@ -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);
......
......@@ -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;
}*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment