From 50fe88d7ab2c5cc008571cc3d6ed3d6e2a68dd28 Mon Sep 17 00:00:00 2001 From: Pranam Lashkari Date: Wed, 29 Apr 2020 00:20:12 +0530 Subject: 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 Reviewed-by: Marco Cecchetti Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94855 Tested-by: Andras Timar Reviewed-by: Andras Timar --- desktop/source/lib/init.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'desktop') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index d8f973dc3d83..8d3b0ddf7e26 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3951,9 +3951,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(pWindow.get())) -- cgit