Commit 2612727d authored by Scott Wheeler's avatar Scott Wheeler

Actually the offset should come before the bounds check.

svn path=/trunk/kdemultimedia/juk/; revision=362360
parent 23807eca
......@@ -111,6 +111,10 @@ void CoverInfo::popup(PopupCorner corner)
{
QPoint p = QCursor::pos();
int offset = corner == TopLeftCorner ? -10 : 10;
p.setX(p.x() + offset);
p.setY(p.y() + offset);
QPixmap image = pixmap(FullSize);
if(corner == BottomRightCorner) {
......@@ -130,10 +134,6 @@ void CoverInfo::popup(PopupCorner corner)
p.setX(r.bottom() - image.height());
}
int offset = corner == TopLeftCorner ? -10 : 10;
p.setX(p.x() + offset);
p.setY(p.y() + offset);
new CoverPopup(image, p);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment