Fix crash resizing composition with keyframes

parent 7fc3bead
......@@ -1148,7 +1148,7 @@ int TimelineController::getMouseTrack()
void TimelineController::refreshItem(int id)
{
int in = m_model->getItemPosition(id);
if (in > m_position || m_model->m_allClips[id]->isAudioOnly()) {
if (in > m_position || (m_model->isClip(id) && m_model->m_allClips[id]->isAudioOnly())) {
return;
}
if (m_position <= in + m_model->getItemPlaytime(id)) {
......
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