From: Jean-Baptiste Mardelle Date: Mon, 15 Feb 2010 22:54:21 +0000 (+0000) Subject: Fix crash on clip deletion X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4bac038055b99afdc2d734b352e906657ca0c3a5;p=kdenlive Fix crash on clip deletion svn path=/trunk/kdenlive/; revision=4307 --- diff --git a/src/clipitem.cpp b/src/clipitem.cpp index fb983442..3d43267d 100644 --- a/src/clipitem.cpp +++ b/src/clipitem.cpp @@ -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);