sw/source/core/swg/SwXMLTextBlocks1.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit afc7f61f6a87f2daf3b9e3cba2ecd4a70578793d Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Nov 12 16:47:27 2024 +0000 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Nov 13 09:20:27 2024 +0100 disable autotext atevent.xml in kit mode Change-Id: Ie6e3e38768124e256a31c343a10cbc30262708e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176492 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> diff --git a/sw/source/core/swg/SwXMLTextBlocks1.cxx b/sw/source/core/swg/SwXMLTextBlocks1.cxx index 989f3ff93ea9..deb7b6090ae9 100644 --- a/sw/source/core/swg/SwXMLTextBlocks1.cxx +++ b/sw/source/core/swg/SwXMLTextBlocks1.cxx @@ -26,6 +26,7 @@ #include <comphelper/diagnose_ex.hxx> #include <comphelper/fileformat.h> #include <comphelper/processfactory.hxx> +#include <comphelper/lok.hxx> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/xml/sax/InputSource.hpp> #include <com/sun/star/io/IOException.hpp> @@ -173,6 +174,9 @@ ErrCode SwXMLTextBlocks::GetMacroTable( sal_uInt16 nIdx, if ( OpenFile() != ERRCODE_NONE ) return ERR_SWG_READ_ERROR; + if (comphelper::LibreOfficeKit::isActive()) + return ERR_SWG_READ_ERROR; + try { m_xRoot = m_xBlkRoot->openStorageElement( m_aPackageName, embed::ElementModes::READ );