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

Fix crash on grouped mix deletion

parent f65254d7
......@@ -2895,9 +2895,12 @@ int TimelineModel::requestItemSpeedChange(int itemId, int size, bool right, int
bool TimelineModel::removeMixWithUndo(int cid, Fun &undo, Fun &redo)
{
int tid = getItemTrackId(cid);
MixInfo mixData = getTrackById_const(tid)->getMixInfo(cid).first;
bool res = getTrackById(tid)->requestRemoveMix({mixData.firstClipId,mixData.secondClipId}, undo, redo);
return res;
if (isTrack(tid)) {
MixInfo mixData = getTrackById_const(tid)->getMixInfo(cid).first;
bool res = getTrackById(tid)->requestRemoveMix({mixData.firstClipId,mixData.secondClipId}, undo, redo);
return res;
}
return true;
}
bool TimelineModel::removeMix(int cid)
......
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