sw/source/uibase/uiview/view2.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
New commits: commit ee7f55d3aa84435fcbdab57e0c7603129157ad5d Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Oct 3 16:22:10 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Oct 4 13:34:11 2022 +0200 don't guess which frame will be the parent, provide it explicitly Change-Id: Iccbe0ebff35c0dc2287b785a160e80f763e6ed99 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140928 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx index 4d674434af57..1953fb5706a7 100644 --- a/sw/source/uibase/uiview/view2.cxx +++ b/sw/source/uibase/uiview/view2.cxx @@ -2047,8 +2047,15 @@ void SwView::ExecuteStatusLine(SfxRequest &rReq) case FN_STAT_TEMPLATE: { + weld::Window* pDialogParent = GetViewFrame()->GetFrameWeld(); + css::uno::Any aAny(pDialogParent->GetXWindow()); + SfxUnoAnyItem aDialogParent(SID_DIALOG_PARENT, aAny); + const SfxPoolItem* pInternalItems[ 2 ]; + pInternalItems[ 0 ] = &aDialogParent; + pInternalItems[ 1 ] = nullptr; GetViewFrame()->GetDispatcher()->Execute(FN_FORMAT_PAGE_DLG, - SfxCallMode::SYNCHRON|SfxCallMode::RECORD ); + SfxCallMode::SYNCHRON|SfxCallMode::RECORD, + nullptr, 0, pInternalItems); } break; case SID_ATTR_ZOOM: