sc/source/ui/app/inputwin.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 6c1e3cd597cba07ff637173ab298794dba463054
Author: Szymon Kłos <[email protected]>
AuthorDate: Mon Oct 14 11:51:39 2024 +0200
Commit: Szymon Kłos <[email protected]>
CommitDate: Tue Oct 15 07:49:44 2024 +0200
lok: calc: fix formulabar after accept formula command
Steps to reproduce:
1. open calc
2. start typing into cell
3. click "accept formula" button
4. click again at formulabar
5. try to type
result: no text is shown
expected: can edit formula
Signed-off-by: Szymon Kłos <[email protected]>
Change-Id: I52cffef5a3a7d1f4ffa88675964090e68c0e1f48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174886
(cherry picked from commit ce9ab2c38a2886e5eab3cae4f09b975d31840633)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174798
Tested-by: Jenkins
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 00491fd0e798..7a6db430cf98 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1827,6 +1827,9 @@ bool ScTextWnd::Command( const CommandEvent& rCEvt )
if (!m_xEditView)
return true;
+ // if we focus input after "Accept Formula" command, we need to notify
to get it working
+ SC_MOD()->InputChanged(m_xEditView.get());
+
// information about paragraph is in additional data
// information about position in a paragraph in a Mouse Pos
// see vcl/jsdialog/executor.cxx "textselection" event