sc/source/core/data/document.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 395b69a2c8a205a0fcb40c31651031fe9e1a4583 Author: Jan Holesovsky <ke...@collabora.com> Date: Wed Jan 13 15:03:37 2016 +0100 sc: Fix the unit tests. Change-Id: I1d5ea5835115bca3c8d24dc1f2e43c14d5d7b47a diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 0e93b81..df19fae 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, ""); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits