┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-05-03 06:02:44 +0000
committerPeter Penz <[email protected]>2007-05-03 06:02:44 +0000
commitbe7f817875e533cd9dabde7115febfc1fd6a37f6 (patch)
tree598e2c1e3319396c667620211c4a6a51eaa8f4dd /src
parent7b286a5463e208990f7ee1d1e28b7bb062b7a409 (diff)
optimize
svn path=/trunk/KDE/kdebase/apps/; revision=660582
Diffstat (limited to 'src')
-rw-r--r--src/pixmapviewer.cpp4
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();
}
}