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

Fix crash moving clip with speed effect and mix.

BUG: 433579
parent 69173eb5
......@@ -84,7 +84,7 @@ void ClipSnapModel::addAllSnaps()
}
}
if (m_mixPoint > 0) {
ptr->addPoint(int(ceil(m_position + m_mixPoint / m_speed)));
ptr->addPoint(int(ceil(m_position + m_mixPoint)));
}
}
}
......@@ -98,7 +98,7 @@ void ClipSnapModel::removeAllSnaps()
}
}
if (m_mixPoint > 0) {
ptr->removePoint(int(ceil(m_position + m_mixPoint / m_speed)));
ptr->removePoint(int(ceil(m_position + m_mixPoint)));
}
}
}
......
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