diff options
author | Jan Holesovsky <kendy@collabora.com> | 2016-01-13 15:03:37 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2016-01-13 15:07:41 +0100 |
commit | ba3dd2fe5e74337c538205e5be0daf399ee51943 (patch) | |
tree | 6f22173661c15b07a99cae5ef71464579e83142c /sc | |
parent | 19ef189f3bebe46a412d22fb6205b0e4c1aa377f (diff) |
sc: Fix the unit tests.
Change-Id: I1d5ea5835115bca3c8d24dc1f2e43c14d5d7b47a
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, ""); } |