Commit 93fe96c0 authored by Peter Penz's avatar Peter Penz

optimize

svn path=/trunk/KDE/kdebase/apps/; revision=660582
parent 63e1155c
......@@ -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();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment