]> git.sesse.net Git - kdenlive/blobdiff - src/projectlist.cpp
Fix Qt 4.6 compilation: http://kdenlive.org/mantis/view.php?id=2735
[kdenlive] / src / projectlist.cpp
index 201e2cfd4221ee2949f855cc3dbefe70300bd107..0c185866cfe29d53d92de6fbf9936acfb3629889 100644 (file)
@@ -2111,12 +2111,12 @@ void ProjectList::slotRefreshClipThumbnail(QTreeWidgetItem *it, bool update)
         int dwidth = (int)(height  * m_render->dar() + 0.5);
         if (clip->clipType() == AUDIO)
             pix = KIcon("audio-x-generic").pixmap(QSize(dwidth, height));
-        else if (clip->clipType() == IMAGE)
+        else if (clip->clipType() == IMAGE) {
             img = KThumb::getFrame(item->referencedClip()->getProducer(), 0, swidth, dwidth, height);
+       }
         else {
             img = item->referencedClip()->extractImage(frame, dwidth, height);
         }
-
         if (!pix.isNull() || !img.isNull()) {
             monitorItemEditing(false);
             if (!img.isNull()) {