sc/source/ui/app/inputhdl.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 9d1d668a608cc5b406601c2f7f3d8581e8f47d1c
Author:     Eike Rathke <er...@redhat.com>
AuthorDate: Sat Oct 22 23:22:15 2022 +0200
Commit:     Eike Rathke <er...@redhat.com>
CommitDate: Sun Oct 23 00:23:48 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

diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 0d8274e3cc59..3ad56ba03cc7 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -2562,7 +2562,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?
             {

Reply via email to