Fixing zoom in. I spotted this bug while using the animation in Plasma::Containment.

svn path=/trunk/KDE/kdelibs/; revision=1063085
This commit is contained in:
Adenilson Cavalcanti Da Silva 2009-12-16 22:31:00 +00:00
parent 2afa60e695
commit 92383665fc

View File

@ -66,8 +66,11 @@ void ZoomAnimation::updateCurrentTime(int currentTime)
if (w) {
qreal delta = Animation::easingCurve().valueForProgress(
currentTime / qreal(duration()));
delta = (1 - m_zoom) * delta;
w->setScale( 1 - delta);
if (m_zoom != 1) {
delta = (1 - m_zoom) * delta;
w->setScale(1 - delta);
} else
w->setScale(delta);
}
Animation::updateCurrentTime(currentTime);