diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-10-15 16:09:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-10-15 17:17:48 +0200 |
commit | dd27b60cb60b7cbe03646a9f2951cedabf4212d6 (patch) | |
tree | a6659dfdeef7fed83a1e21e0732c6de3803deba0 | |
parent | d779ad8cb0ed4a3a1d996bc9979e2cc49a69cae1 (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.cxx | 3 |
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(), |