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

Fix another grouped mix move crash

parent 84a00836
......@@ -2897,8 +2897,10 @@ bool TimelineModel::removeMixWithUndo(int cid, Fun &undo, Fun &redo)
int tid = getItemTrackId(cid);
if (isTrack(tid)) {
MixInfo mixData = getTrackById_const(tid)->getMixInfo(cid).first;
bool res = getTrackById(tid)->requestRemoveMix({mixData.firstClipId,mixData.secondClipId}, undo, redo);
return res;
if (mixData.firstClipId > -1 && mixData.secondClipId > -1) {
bool res = getTrackById(tid)->requestRemoveMix({mixData.firstClipId,mixData.secondClipId}, undo, redo);
return res;
}
}
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