[Libreoffice-commits] core.git: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Feb 19 13:32:24 UTC 2019


 sw/source/uibase/uiview/viewling.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit b48a2741477e4dbc79760c592c8263f34dff1e9d
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Feb 19 09:27:01 2019 +0000
Commit:     Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at 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 );
 


More information about the Libreoffice-commits mailing list