Fix crash on clip deletion

svn path=/trunk/kdenlive/; revision=4307
parent cec913fd
......@@ -698,7 +698,8 @@ void ClipItem::paint(QPainter *painter,
} else mappedRect = mapped;
double scale = painter->matrix().m11();
int channels = baseClip()->getProperty("channels").toInt();
int channels = 0;
if (isEnabled() && m_clip) channels = m_clip->getProperty("channels").toInt();
if (scale != m_framePixelWidth)
m_audioThumbCachePic.clear();
double cropLeft = m_info.cropStart.frames(m_fps);
......
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