From 895d2302623d5c061313c1cff5412d7eb33d3bda Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 29 Oct 2009 19:20:19 +0000 Subject: [PATCH] just ask the view for its screen directly svn path=/trunk/KDE/kdelibs/; revision=1042421 --- corona.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corona.cpp b/corona.cpp index 3faf6843d..2210706e0 100644 --- a/corona.cpp +++ b/corona.cpp @@ -662,7 +662,7 @@ QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s, Qt::Alig } //are we out of screen? - QRect screenRect = screenGeometry((pv && pv->containment()) ? pv->containment()->screen() : -1); + QRect screenRect = screenGeometry(pv ? pv->screen() : -1); //kDebug() << "==> rect for" << (pv ? pv->containment()->screen() : -1) << "is" << screenRect; if (loc != LeftEdge && pos.x() + s.width() > screenRect.right()) {