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

Fix missing parameter in group move causing possible freeze/crash on group move

parent 7eeb8df5
Pipeline #18518 passed with stage
in 9 minutes and 42 seconds
...@@ -2941,7 +2941,7 @@ bool TimelineModel::requestCompositionMove(int compoId, int trackId, int positio ...@@ -2941,7 +2941,7 @@ bool TimelineModel::requestCompositionMove(int compoId, int trackId, int positio
int track_pos2 = getTrackPosition(current_trackId); int track_pos2 = getTrackPosition(current_trackId);
int delta_track = track_pos1 - track_pos2; int delta_track = track_pos1 - track_pos2;
int delta_pos = position - m_allCompositions[compoId]->getPosition(); int delta_pos = position - m_allCompositions[compoId]->getPosition();
return requestGroupMove(compoId, groupId, delta_track, delta_pos, updateView, logUndo); return requestGroupMove(compoId, groupId, delta_track, delta_pos, true, updateView, logUndo);
} }
std::function<bool(void)> undo = []() { return true; }; std::function<bool(void)> undo = []() { return true; };
std::function<bool(void)> redo = []() { return true; }; std::function<bool(void)> redo = []() { return true; };
......
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