this return is wrong

svn path=/trunk/KDE/kdelibs/; revision=1134141
This commit is contained in:
Marco Martin 2010-06-03 14:16:03 +00:00
parent 13113abbf4
commit 7aa44c8d93

View File

@ -465,7 +465,7 @@ public:
}
} else if (end == fixupAnimation.endX && snapSize.width() > 1 &&
q->contentsSize().width() > q->viewportGeometry().width()) {
int target = snapSize.width() * round(val/snapSize.width());return;
int target = snapSize.width() * round(val/snapSize.width());
fixupAnimation.snapX->setStartValue(val);
fixupAnimation.snapX->setEndValue(target);
fixupAnimation.snapX->setDuration(FixupDuration);