summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-10-15 16:09:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-10-15 17:17:48 +0200
commitdd27b60cb60b7cbe03646a9f2951cedabf4212d6 (patch)
treea6659dfdeef7fed83a1e21e0732c6de3803deba0
parentd779ad8cb0ed4a3a1d996bc9979e2cc49a69cae1 (diff)
ofz#52422 Build-Failure
Change-Id: I24aae3d273190cc936996c9d81d2c07d9e436193 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141418 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sfx2/source/appl/appserv.cxx3
1 files changed, 3 insertions, 0 deletions
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(),