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

New commits:
commit 0b4b644fb5b1ccba1f77698a399b625f877ed8f9
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:19:02 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/+/141694
    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 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?
             {

Reply via email to