From 7aa44c8d93324669ce8e8f04b7a59a3539b8cc09 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 3 Jun 2010 14:16:03 +0000 Subject: [PATCH] this return is wrong svn path=/trunk/KDE/kdelibs/; revision=1134141 --- widgets/scrollwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/scrollwidget.cpp b/widgets/scrollwidget.cpp index 536416730..053c541d9 100644 --- a/widgets/scrollwidget.cpp +++ b/widgets/scrollwidget.cpp @@ -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);