Commit 89a4bdf2 authored by Julius Künzel's avatar Julius Künzel
Browse files

Fix crash introduced with a29dcd7f

parent a29dcd7f
Pipeline #95119 passed with stage
in 9 minutes and 17 seconds
......@@ -3282,8 +3282,8 @@ bool TimelineModel::requestItemResize(int itemId, int size, bool right, bool log
if (isClip(itemId)) {
bool hasMix = false;
int tid = m_allClips[itemId]->getCurrentTrackId();
std::pair<MixInfo, MixInfo> mixData = getTrackById_const(tid)->getMixInfo(itemId);
if (tid > -1) {
std::pair<MixInfo, MixInfo> mixData = getTrackById_const(tid)->getMixInfo(itemId);
if (right && mixData.second.firstClipId > -1) {
hasMix = true;
size = qMin(size, mixData.second.secondClipInOut.second - mixData.second.firstClipInOut.first);
......
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