sfx2/source/appl/appserv.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit dd27b60cb60b7cbe03646a9f2951cedabf4212d6 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sat Oct 15 16:09:41 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> 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 <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> 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(),