diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-01 17:00:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-01 20:20:12 +0200 |
commit | 7c2ddc3ffd2d0f761076363d116288b40370233c (patch) | |
tree | 8209733d2ff3c5715cc50e16f4ffc781109c7f79 /svx | |
parent | ac5b519c0b572975955afab3237c19f6a214bc5b (diff) |
add explicit parent to forms wizards
Change-Id: I2737a43e9c8129163699c922e556c92af566fa55
Reviewed-on: https://gerrit.libreoffice.org/78370
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/fmvwimp.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx index 4f1aad555560..69eed6d706a9 100644 --- a/svx/source/form/fmvwimp.cxx +++ b/svx/source/form/fmvwimp.cxx @@ -43,6 +43,7 @@ #include <svx/svdogrp.hxx> #include <svx/svdpagv.hxx> #include <svx/xmlexchg.hxx> +#include <toolkit/helper/vclunohelper.hxx> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp> @@ -1058,7 +1059,9 @@ IMPL_LINK_NOARG( FmXFormView, OnStartControlWizard, void*, void ) { // build the argument list ::comphelper::NamedValueCollection aWizardArgs; - aWizardArgs.put( "ObjectModel", m_xLastCreatedControlModel ); + aWizardArgs.put("ObjectModel", m_xLastCreatedControlModel); + const vcl::Window* pCurrentWindow = m_pView ? dynamic_cast<const vcl::Window*>(m_pView->GetActualOutDev()) : nullptr; + aWizardArgs.put("ParentWindow", VCLUnoHelper::GetInterface(const_cast<vcl::Window*>(pCurrentWindow))); // create the wizard object Reference< XExecutableDialog > xWizard; |