sw/source/uibase/uiview/viewling.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit b48a2741477e4dbc79760c592c8263f34dff1e9d Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Feb 19 09:27:01 2019 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Feb 19 14:32:02 2019 +0100 set parent for chinese dictionary dialog Change-Id: I29fce67b32a5c632eb12210f707f13b995bd58d3 Reviewed-on: https://gerrit.libreoffice.org/68007 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx index c29c1637ab87..7d6aac2913d9 100644 --- a/sw/source/uibase/uiview/viewling.cxx +++ b/sw/source/uibase/uiview/viewling.cxx @@ -128,10 +128,13 @@ void SwView::ExecLingu(SfxRequest &rReq) Reference< lang::XInitialization > xInit( xDialog, UNO_QUERY ); if( xInit.is() ) { + Reference<awt::XWindow> xParentWindow; + if (weld::Window* pParentWindow = rReq.GetFrameWeld()) + xParentWindow = pParentWindow->GetXWindow(); // initialize dialog uno::Sequence<uno::Any> aSeq(comphelper::InitAnyPropertySequence( { - {"ParentWindow", uno::Any(Reference< awt::XWindow >())} + {"ParentWindow", uno::Any(xParentWindow)} })); xInit->initialize( aSeq ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits