diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/document.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index e878815f4353..b8206422c46f 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -105,6 +105,7 @@ #include <memory> #include <boost/checked_delete.hpp> +#include <comphelper/lok.hxx> #include <LibreOfficeKit/LibreOfficeKitEnums.h> #include "mtvelements.hxx" @@ -569,7 +570,7 @@ bool ScDocument::InsertTab( aCxt.mnTabDeletedEnd = nPos; SetAllFormulasDirty(aCxt); - if (GetDrawLayer()->isTiledRendering()) + if (comphelper::LibreOfficeKit::isActive() && GetDrawLayer()) GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_DOCUMENT_SIZE_CHANGED, ""); } |