From 80f675df0def202de3d52102d12611ceda451d75 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 24 Sep 2009 21:15:47 +0000 Subject: [PATCH] setX, not setY svn path=/trunk/KDE/kdelibs/; revision=1027831 --- widgets/scrollwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/scrollwidget.cpp b/widgets/scrollwidget.cpp index 9a5dd13c3..17f8cf587 100644 --- a/widgets/scrollwidget.cpp +++ b/widgets/scrollwidget.cpp @@ -283,7 +283,7 @@ void ScrollWidget::ensureRectVisible(const QRectF &rect) if (mappedRect.left() < 0) { delta.setX(-mappedRect.left()); } else if (mappedRect.right() > viewRect.right()) { - delta.setY(viewRect.right() - mappedRect.right()); + delta.setX(viewRect.right() - mappedRect.right()); } d->animId = Animator::self()->moveItem(