sc/source/ui/app/inputhdl.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit cde779398e0924e77d630cbe3fbb71c0439939f7 Author: Eike Rathke <er...@redhat.com> AuthorDate: Sat Oct 22 23:22:15 2022 +0200 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Oct 24 18:18:21 2022 +0200 Resolves: tdf#150780 Overtyping is not editing Change-Id: Ie83245479e4f356cf120dae1da39d35a9bb1a2e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141676 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Jenkins (cherry picked from commit 9d1d668a608cc5b406601c2f7f3d8581e8f47d1c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141593 Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index dd1f9f61958a..11a9d03f9043 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -2560,7 +2560,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? {