setX, not setY

svn path=/trunk/KDE/kdelibs/; revision=1027831
This commit is contained in:
Marco Martin 2009-09-24 21:15:47 +00:00
parent a4d591e6fd
commit 80f675df0d

View File

@ -283,7 +283,7 @@ void ScrollWidget::ensureRectVisible(const QRectF &rect)
if (mappedRect.left() < 0) { if (mappedRect.left() < 0) {
delta.setX(-mappedRect.left()); delta.setX(-mappedRect.left());
} else if (mappedRect.right() > viewRect.right()) { } else if (mappedRect.right() > viewRect.right()) {
delta.setY(viewRect.right() - mappedRect.right()); delta.setX(viewRect.right() - mappedRect.right());
} }
d->animId = Animator::self()->moveItem( d->animId = Animator::self()->moveItem(