sanity check the y just as we do the x

This commit is contained in:
Aaron Seigo 2011-12-16 14:52:16 +01:00
parent 1b2d92c085
commit 64373cf1da

View File

@ -482,7 +482,7 @@ QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s, Qt::Alig
}
}
kDebug() << actualItem;
//kDebug() << actualItem;
if (actualItem) {
v = viewFor(actualItem);
@ -618,6 +618,7 @@ QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s, Qt::Alig
}
pos.rx() = qMax(0, pos.x());
pos.ry() = qMax(0, pos.y());
return pos;
}