[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - desktop/source sc/source
Pranam Lashkari (via logerrit)
logerrit at kemper.freedesktop.org
Tue May 5 09:54:01 UTC 2020
desktop/source/lib/init.cxx | 5 ++---
sc/source/ui/app/inputwin.cxx | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
New commits:
commit 756bbe3f94fe1736406b7fd16ce62a67e7e62769
Author: Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Wed Apr 29 00:20:12 2020 +0530
Commit: Marco Cecchetti <marco.cecchetti at collabora.com>
CommitDate: Tue May 5 11:53:26 2020 +0200
tdf#131230: Sidebar: Can't set Automatic color
This also solved the issue in sidebar with some controls
when selecting an item it selects the item below
Change-Id: I607b8bc44402b57b5c4833f918fb41b23ddf48c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93099
Tested-by: Marco Cecchetti <marco.cecchetti at collabora.com>
Reviewed-by: Marco Cecchetti <marco.cecchetti at collabora.com>
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index c735451b8e0c..7c3a86ca5878 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3830,9 +3830,8 @@ static void doc_postWindowMouseEvent(LibreOfficeKitDocument* /*pThis*/, unsigned
return;
}
- Size aOffset(pWindow->GetOutOffXPixel(), pWindow->GetOutOffYPixel());
- Point aPos(nX, nY);
- aPos.Move(aOffset);
+ const Point aPos(nX, nY);
+
MouseEvent aEvent(aPos, nCount, MouseEventModifiers::SIMPLECLICK, nButtons, nModifier);
if (Dialog* pDialog = dynamic_cast<Dialog*>(pWindow.get()))
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 1d1963feb61a..a8ecde9b214b 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -576,7 +576,7 @@ void ScInputWindow::NotifyLOKClient()
{
std::vector<vcl::LOKPayloadItem> aItems;
aItems.emplace_back("type", "calc-input-win");
- aItems.emplace_back(std::make_pair("position", Point(0, 0).toString()));
+ aItems.emplace_back(std::make_pair("position", Point(GetOutOffXPixel(), GetOutOffYPixel()).toString()));
aItems.emplace_back(std::make_pair("size", aSize.toString()));
aItems.emplace_back("lines", OString::number(aTextWindow.GetNumLines()));
pNotifier->notifyWindow(GetLOKWindowId(), "created", aItems);
More information about the Libreoffice-commits
mailing list