diff options
| author | Neil <nyamatongwe@gmail.com> | 2013-10-18 15:19:58 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2013-10-18 15:19:58 +1100 | 
| commit | 2f6db59424268e24ddfd63c1cac23239b790ec0b (patch) | |
| tree | 9abd68166ecbc2378ca649c2365fae9ef57c30d3 /qt/ScintillaEditBase/PlatQt.cpp | |
| parent | 48e26081957786325dc3526220584c59437cba86 (diff) | |
| download | scintilla-mirror-2f6db59424268e24ddfd63c1cac23239b790ec0b.tar.gz | |
Fix Window::GetMonitorRect when top left of screen is not 0,0.
From John Ehresman.
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.cpp')
| -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());  } | 
