diff options
| author | Peter Penz <[email protected]> | 2007-05-03 06:02:44 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-05-03 06:02:44 +0000 |
| commit | be7f817875e533cd9dabde7115febfc1fd6a37f6 (patch) | |
| tree | 598e2c1e3319396c667620211c4a6a51eaa8f4dd | |
| parent | 7b286a5463e208990f7ee1d1e28b7bb062b7a409 (diff) | |
optimize
svn path=/trunk/KDE/kdebase/apps/; revision=660582
| -rw-r--r-- | src/pixmapviewer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } } |
