diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-04-08 09:18:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-08 12:38:49 +0200 |
commit | 2411097e1fdf63f176cb6bbeabbbab8241f773c3 (patch) | |
tree | b588cc9f736dc7ca633f54d32df72738cd152c93 /sfx2 | |
parent | 6ba439d2583af917cea533aac7608e33db137c96 (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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; |