summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-02-19 09:27:01 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-02-19 14:32:02 +0100
commitb48a2741477e4dbc79760c592c8263f34dff1e9d (patch)
treea16781d52aed43044cf42042598f1cef5fd79c00 /sw
parente51cc9ebf39598c1204d9b89af4e4145433adbd4 (diff)
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@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uiview/viewling.cxx5
1 files changed, 4 insertions, 1 deletions
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 );