sd/source/ui/view/ViewShellBase.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 6f993ff3c16fe3a826cfb2d9c82f45a401d77666 Author: Méven Car <meven....@collabora.com> AuthorDate: Wed May 8 16:36:20 2024 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Fri May 10 09:06:48 2024 +0200 sd: prevent some work outside of LibreOfficeKit fbd8cfb046fd0882402e01c2e0b2955e6972737f added a stateChange event for Is/GetStartWithPresentation. This is needed only in case we are in LibreOfficeKit context. Change-Id: I9d853c4d50fd07c45c40fb20c27bd26ab30c1680 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167362 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx index 1d7bf8caadd9..f03eca21b088 100644 --- a/sd/source/ui/view/ViewShellBase.cxx +++ b/sd/source/ui/view/ViewShellBase.cxx @@ -74,6 +74,7 @@ #include <sfx2/notebookbar/SfxNotebookBar.hxx> #include <comphelper/diagnose_ex.hxx> +#include <comphelper/lok.hxx> #include <sfx2/lokhelper.hxx> #include <LibreOfficeKit/LibreOfficeKitEnums.h> #include <editeng/editview.hxx> @@ -1039,7 +1040,7 @@ void ViewShellBase::afterCallbackRegistered() svx::theme::notifyLOK(pThemeColors, aDocumentColors); } - if (mpDocument && mpDocument->GetStartWithPresentation()) + if (comphelper::LibreOfficeKit::isActive() && mpDocument && mpDocument->GetStartWithPresentation()) { // Be consistent with SidebarController, emit JSON. boost::property_tree::ptree aTree;