diff options
Diffstat (limited to 'src/pixmapviewer.cpp')
| -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(); } } |
