summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-06-24 14:04:03 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2022-06-27 13:43:39 +0200
commit7bb8c3da46544227ca35413738c9a57238fff8a0 (patch)
tree8337529e0c77f5caeacff5179fd4ba3d2fae6ff3
parent26ee145fd829d24c197f723efbb71809170e9e3b (diff)
lok: formulabar: send correct caret position for numbers
It fixes the bug: 1. Open spreadsheet and type long numer in some cell (only numbers) 2. Move cell cursor to another cell, then using keyboard go back to the previous cell 3. click in formulabar somewhere in the middle of a number 4. try to type one character result: character was added in correct place but cursor was moved to the start expected: caret will stay at correct place Change-Id: I514d868dce5478e65d57fd2f350da9777b615e0a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136395 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Rashesh Padia <rashesh.padia@collabora.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r--sc/source/ui/app/inputhdl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index e2343e052cfe..0fb604520ac2 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -2786,6 +2786,10 @@ void ScInputHandler::DataChanged( bool bFromTopNotify, bool bSetModified )
if (comphelper::LibreOfficeKit::isActive() && pActiveViewSh && pInputWin)
{
+ UpdateActiveView();
+ if (pActiveView)
+ aSel = pActiveView->GetSelection();
+
ScInputHandler::LOKSendFormulabarUpdate(pActiveViewSh,
ScEditUtil::GetMultilineString(*mpEditEngine),
aSel);