From: Peter Penz Date: Thu, 3 May 2007 06:02:44 +0000 (+0000) Subject: optimize X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/be7f817875e533cd9dabde7115febfc1fd6a37f6 optimize svn path=/trunk/KDE/kdebase/apps/; revision=660582 --- diff --git a/src/pixmapviewer.cpp b/src/pixmapviewer.cpp index 4e3aa4830..b25dcdc67 100644 --- a/src/pixmapviewer.cpp +++ b/src/pixmapviewer.cpp @@ -50,7 +50,9 @@ void PixmapViewer::setPixmap(const QPixmap& pixmap) m_pixmap = pixmap; update(); - if (m_transition != NoTransition) { + const bool animate = (m_transition != NoTransition) && + (m_pixmap.size() != m_oldPixmap.size()); + if (animate) { m_animation.start(); } }