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:
parent
2afa60e695
commit
92383665fc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user