sfx2/source/appl/appserv.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 2411097e1fdf63f176cb6bbeabbbab8241f773c3 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Apr 8 09:18:26 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Apr 8 12:38:49 2021 +0200 use the SfxRequest to get the appropiate dialog parent Change-Id: I794718fa6ef8f395cf2e50e570f955926fc282f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113791 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index dc1420986dfb..b58d4f891a53 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -1581,8 +1581,7 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq ) if ( pSet && pSet->GetItemState( pSetPool->GetWhich( SID_AUTO_CORRECT_DLG ), false, &pItem ) == SfxItemState::SET ) aSet.Put( *pItem ); - const SfxViewFrame* pViewFrame = SfxViewFrame::Current(); - ScopedVclPtr<SfxAbstractTabDialog> pDlg(pFact->CreateAutoCorrTabDialog(pViewFrame ? pViewFrame->GetWindow().GetFrameWeld() : nullptr, &aSet)); + ScopedVclPtr<SfxAbstractTabDialog> pDlg(pFact->CreateAutoCorrTabDialog(rReq.GetFrameWeld(), &aSet)); pDlg->Execute(); break; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits