diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-19 13:47:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-20 09:56:54 +0200 |
commit | 41db073808566641a3c364e6490f33b7f204d0b0 (patch) | |
tree | 56748a1212bf2f2f049a47d8815d15224aee34d4 /editeng | |
parent | da9a539999fc8ae47a78542ce646005f3a9be868 (diff) |
weld SvxHyphenWordDialog
Change-Id: If92d57c5c807a7fc04fe66a748aa385c558be664
Reviewed-on: https://gerrit.libreoffice.org/60774
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/splwrap.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editeng/source/misc/splwrap.cxx b/editeng/source/misc/splwrap.cxx index 6e2175a8f269..1a4e8568351b 100644 --- a/editeng/source/misc/splwrap.cxx +++ b/editeng/source/misc/splwrap.cxx @@ -273,18 +273,16 @@ void SvxSpellWrapper::SpellDocument( ) { Reference< XHyphenatedWord > xHyphWord( GetLast(), UNO_QUERY ); - vcl::Window *pOld = pWin; if (xHyphWord.is()) { EditAbstractDialogFactory* pFact = EditAbstractDialogFactory::Create(); - ScopedVclPtr<AbstractHyphenWordDialog> pDlg(pFact->CreateHyphenWordDialog( pWin, + ScopedVclPtr<AbstractHyphenWordDialog> pDlg(pFact->CreateHyphenWordDialog( + pWin ? pWin->GetFrameWeld() : nullptr, xHyphWord->getWord(), LanguageTag( xHyphWord->getLocale() ).getLanguageType(), xHyph, this )); - pWin = pDlg->GetWindow(); pDlg->Execute(); } - pWin = pOld; } } |