From 0b4b644fb5b1ccba1f77698a399b625f877ed8f9 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Sat, 22 Oct 2022 23:22:15 +0200 Subject: Resolves: tdf#150780 Overtyping is not editing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie83245479e4f356cf120dae1da39d35a9bb1a2e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141676 Reviewed-by: Eike Rathke Tested-by: Jenkins (cherry picked from commit 9d1d668a608cc5b406601c2f7f3d8581e8f47d1c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141694 Reviewed-by: Caolán McNamara --- sc/source/ui/app/inputhdl.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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? { -- cgit