Commit 32f371d5 authored by Aleksei Kanash's avatar Aleksei Kanash

Fixed determining of absurd points on UBBoardView.

parent c74c6cdc
...@@ -1541,7 +1541,7 @@ bool UBBoardView::isAbsurdPoint(QPoint point) ...@@ -1541,7 +1541,7 @@ bool UBBoardView::isAbsurdPoint(QPoint point)
for (int i = 0; i < desktop->numScreens (); i++) for (int i = 0; i < desktop->numScreens (); i++)
{ {
QRect screenRect = desktop->screenGeometry (i); QRect screenRect = desktop->screenGeometry (i);
isValidPoint = isValidPoint || screenRect.contains (point); isValidPoint = isValidPoint || screenRect.contains (mapToGlobal(point));
} }
return !isValidPoint; return !isValidPoint;
......
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