Commit 7623b16b authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix clip move incorrectly rejected

Fixes #869
parent 8199a988
...@@ -2352,7 +2352,7 @@ bool TimelineModel::requestGroupMove(int itemId, int groupId, int delta_track, i ...@@ -2352,7 +2352,7 @@ bool TimelineModel::requestGroupMove(int itemId, int groupId, int delta_track, i
if (getTrackById_const(current_track_id)->hasStartMix(item.first)) { if (getTrackById_const(current_track_id)->hasStartMix(item.first)) {
subPlaylist = m_allClips[item.first]->getSubPlaylistIndex(); subPlaylist = m_allClips[item.first]->getSubPlaylistIndex();
} }
if (!getTrackById_const(current_track_id)->isAvailable(target_position, -delta_pos, subPlaylist)) { if (!getTrackById_const(current_track_id)->isAvailable(target_position, playtime, subPlaylist)) {
if (!getTrackById_const(current_track_id)->isBlankAt(current_in - 1)) { if (!getTrackById_const(current_track_id)->isBlankAt(current_in - 1)) {
// No move possible, abort // No move possible, abort
bool undone = local_undo(); bool undone = local_undo();
......
Markdown is supported
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