diff options
author | Eike Rathke <erack@redhat.com> | 2022-10-22 23:22:15 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-10-24 18:19:02 +0200 |
commit | 0b4b644fb5b1ccba1f77698a399b625f877ed8f9 (patch) | |
tree | 9da4ad39f6be8aa56757cf126699a3246f97ca50 | |
parent | 9328e304c55684911b97f4e4fa3dab2fd1eb7f0f (diff) |
Resolves: tdf#150780 Overtyping is not editingmimo-7-3-branch-point
Change-Id: Ie83245479e4f356cf120dae1da39d35a9bb1a2e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141676
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
(cherry picked from commit 9d1d668a608cc5b406601c2f7f3d8581e8f47d1c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141694
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/ui/app/inputhdl.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 1d6f9bcba9d3..e69b06b9abca 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -2561,7 +2561,9 @@ bool ScInputHandler::StartTable( sal_Unicode cTyped, bool bFromCommand, bool bIn } else aStr = GetEditText(mpEditEngine.get()); - mbEditingExistingContent = !aStr.isEmpty(); + + // cTyped!=0 is overtyping, not editing. + mbEditingExistingContent = !cTyped && !aStr.isEmpty(); if (aStr.startsWith("{=") && aStr.endsWith("}") ) // Matrix formula? { |