diff options
| -rw-r--r-- | qt/ScintillaEditBase/PlatQt.cpp | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp index 371634067..71c4c08fc 100644 --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -738,8 +738,7 @@ PRectangle Window::GetMonitorRect(Point pt)  	QPoint posGlobal = window(wid)->mapToGlobal(QPoint(pt.x, pt.y));  	QDesktopWidget *desktop = QApplication::desktop();  	QRect rectScreen = desktop->availableGeometry(posGlobal); -	rectScreen.moveLeft(-originGlobal.x()); -	rectScreen.moveTop(-originGlobal.y()); +	rectScreen.translate(-originGlobal.x(), -originGlobal.y());  	return PRectangle(rectScreen.left(), rectScreen.top(),  	        rectScreen.right(), rectScreen.bottom());  }  | 
