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

New commits:
commit 51678d9cf57085bac3c7eba998e0a6d364d36cb2
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed Oct 18 17:28:37 2023 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed Oct 18 20:08:47 2023 +0200

    fix crash in ScInputHandler::ImplCreateEditEngine()
    
    See 
https://crashreport.libreoffice.org/stats/crash_details/1b2c45b0-6053-4628-94cc-f639899ceb39
    
    Regression from 5484657d2b1677b7e385ab6ef87ad64dcb9934e4
    "tdf#156209 Font size increases when copying from cell in edit mode"
    
    Change-Id: I84cac26087b0c8908c22bbb45056e309cd66a016
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158123
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index b4d56988ca0f..de6a7f47a8bc 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -3080,7 +3080,8 @@ void ScInputHandler::EnterHandler( ScEnterMode 
nBlockMode, bool bBeforeSavingInL
     bInOwnChange = true; // disable ModifyHdl (reset below)
     mbPartialPrefix = false;
 
-    ImplCreateEditEngine();
+    if (pActiveViewSh)
+        ImplCreateEditEngine();
 
     bool bMatrix = ( nBlockMode == ScEnterMode::MATRIX );
 

Reply via email to