From a6211982dabb69ceea1eae28ca1aa091094de83c Mon Sep 17 00:00:00 2001 From: Igor Trindade Oliveira Date: Thu, 22 Oct 2009 20:43:35 +0000 Subject: [PATCH] fix animation direction svn path=/trunk/KDE/kdelibs/; revision=1039151 --- animations/rotationstacked.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/animations/rotationstacked.cpp b/animations/rotationstacked.cpp index 0f1188c00..284b83a29 100644 --- a/animations/rotationstacked.cpp +++ b/animations/rotationstacked.cpp @@ -111,12 +111,11 @@ QAbstractAnimation *RotationStackedAnimation::render(QObject *parent) d->frontRotation->setAxis(Qt::YAxis); d->backRotation->setAxis(Qt::YAxis); - if(direction() == MoveLeft) { - d->backRotation->setAngle(265); + if(direction() == MoveLeft) { + } else { + d->backRotation->setAngle(265); backAnim->setEndValue(360); frontAnim->setEndValue(90); - } else { - d->backRotation->setAngle(-90); } } }