diff options
-rw-r--r-- | sc/source/core/data/document.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index aafd4271e5d1..04e20ce4b8ac 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -485,6 +485,11 @@ void ScDocument::InvalidateStreamOnSave() bool ScDocument::InsertTab( SCTAB nPos, const OUString& rName, bool bExternalDocument, bool bUndoDeleteTab ) { + // auto-accept any in-process input to prevent move the cell into next sheet in online. + if (comphelper::LibreOfficeKit::isActive()) + if (!SC_MOD()->IsFormulaMode()) + SC_MOD()->InputEnterHandler(); + SCTAB nTabCount = GetTableCount(); bool bValid = ValidTab(nTabCount); if ( !bExternalDocument ) // else test rName == "'Doc'!Tab" first |