summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-05-09 22:49:37 -0400
committerJan Holesovsky <kendy@collabora.com>2019-05-14 11:39:47 +0200
commit171a2300d37d73065e5e3bd4b77678e35f678adf (patch)
treeb0eb01fdd18bdf01403eb743021b59b96b60746e /desktop
parentd5b900630caefc4d3b62a31906117cf4acd623b1 (diff)
LOK: Do not offset window coordinates in LOK
This fixes the issue with selecting the incorrect color when clicking on the color presets in the color picker window in LOK. Because the window coordinates are shifted in Core, and LOK client sends in absolute coordinates, the shift causes a different color to be selected. Change-Id: Ib818b83c0f0c727944068cb244f8d10666e5bc1d
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index a6ede4ba4e51..902dceb64f31 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3253,7 +3253,7 @@ static void doc_postWindowMouseEvent(LibreOfficeKitDocument* /*pThis*/, unsigned
return;
}
- Point aPos(nX, nY);
+ const Point aPos(nX, nY);
MouseEvent aEvent(aPos, nCount, MouseEventModifiers::SIMPLECLICK, nButtons, nModifier);
if (Dialog* pDialog = dynamic_cast<Dialog*>(pWindow.get()))