diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2019-11-04 17:10:45 +0100 |
---|---|---|
committer | Marco Cecchetti <marco.cecchetti@collabora.com> | 2020-03-06 10:40:29 +0100 |
commit | 366e328dc7f36061971c549c2d33d365026b65ca (patch) | |
tree | 25e3ea350dd73f5e68a9f83cdd5a191c1f9220b9 /vcl | |
parent | 8ae1c4b6408d6601d73fa7b688b52e1f01513e4f (diff) |
lok: calc formula bar tunneling
Change-Id: I92026098222e04a163796225a048c6d7dc1b37c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89857
Tested-by: Jenkins
Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/cursor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx index 340fbb77d985..fbc2b2ec1d76 100644 --- a/vcl/source/window/cursor.cxx +++ b/vcl/source/window/cursor.cxx @@ -253,8 +253,8 @@ void vcl::Cursor::LOKNotify( vcl::Window* pWindow, const OUString& rAction ) aItems.emplace_back("visible", mpData->mbCurVisible ? "true" : "false"); else if (rAction == "cursor_invalidate") { - const long nX = pWindow->GetOutOffXPixel() + pWindow->LogicToPixel(GetPos()).X(); - const long nY = pWindow->GetOutOffYPixel() + pWindow->LogicToPixel(GetPos()).Y(); + const long nX = pWindow->GetOutOffXPixel() + pWindow->LogicToPixel(GetPos()).X() - pParent->GetOutOffXPixel(); + const long nY = pWindow->GetOutOffYPixel() + pWindow->LogicToPixel(GetPos()).Y() - pParent->GetOutOffYPixel(); Size aSize = pWindow->LogicToPixel(GetSize()); if (!aSize.Width()) aSize.setWidth( pWindow->GetSettings().GetStyleSettings().GetCursorSize() ); |