sfx2/source/appl/appserv.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit dd27b60cb60b7cbe03646a9f2951cedabf4212d6
Author: Caolán McNamara <[email protected]>
AuthorDate: Sat Oct 15 16:09:41 2022 +0100
Commit: Caolán McNamara <[email protected]>
CommitDate: Sat Oct 15 17:17:48 2022 +0200
ofz#52422 Build-Failure
Change-Id: I24aae3d273190cc936996c9d81d2c07d9e436193
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141418
Tested-by: Caolán McNamara <[email protected]>
Reviewed-by: Caolán McNamara <[email protected]>
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index e3aefbe4b18a..4727f9413684 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -408,10 +408,13 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
aSet.Put( SfxStringItem(
SID_CONFIG, pStringItem->GetValue() ) );
}
+
+#if HAVE_FEATURE_SCRIPTING
// Preselect a macro:
if (auto const item =
rReq.GetArg<SfxMacroInfoItem>(SID_MACROINFO)) {
aSet.Put(*item);
}
+#endif
Reference <XFrame> xFrame(GetRequestFrame(rReq));
ScopedVclPtr<SfxAbstractTabDialog>
pDlg(pFact->CreateCustomizeTabDialog(rReq.GetFrameWeld(),