summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2016-01-13 15:03:37 +0100
committerJan Holesovsky <kendy@collabora.com>2016-01-13 15:11:28 +0100
commit395b69a2c8a205a0fcb40c31651031fe9e1a4583 (patch)
tree1654a1e2b55fd120616fa12d3fe6af5dd07963db
parent2c4ccc60075493963229d71df27464a2a4f276e4 (diff)
sc: Fix the unit tests.
Change-Id: I1d5ea5835115bca3c8d24dc1f2e43c14d5d7b47a
-rw-r--r--sc/source/core/data/document.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 0e93b8173a54..df19fae12e6c 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -104,6 +104,7 @@
#include <boost/checked_delete.hpp>
#include <boost/scoped_ptr.hpp>
+#include <comphelper/lok.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include "mtvelements.hxx"
@@ -558,7 +559,7 @@ bool ScDocument::InsertTab(
aCxt.mnTabDeletedEnd = nPos;
SetAllFormulasDirty(aCxt);
- if (GetDrawLayer()->isTiledRendering())
+ if (comphelper::LibreOfficeKit::isActive() && GetDrawLayer())
GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_DOCUMENT_SIZE_CHANGED, "");
}