diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-29 09:32:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-29 21:49:24 +0200 |
commit | 6d0d201b30122395eb164807b93d76d567ff970b (patch) | |
tree | 0af8ead928a5f2495bfbcb28bb44cb499b370c31 /sd/source/ui | |
parent | ba0408ae9a4ac1b391944b2fdcfd02f86ab2f773 (diff) |
weld SvxTransformTabDialog
Change-Id: Ib6dabd04e3f834b61363d5a620de7f0219a1e644
Reviewed-on: https://gerrit.libreoffice.org/55012
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/func/futransf.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sd/source/ui/func/futransf.cxx b/sd/source/ui/func/futransf.cxx index 00193fe98bb9..28babc122354 100644 --- a/sd/source/ui/func/futransf.cxx +++ b/sd/source/ui/func/futransf.cxx @@ -81,6 +81,7 @@ void FuTransform::DoExecute( SfxRequest& rReq ) SfxItemSet aSet( mpView->GetGeoAttrFromMarked() ); VclPtr<SfxAbstractTabDialog> pDlg; + bool bWelded = false; const SdrMarkList& rMarkList = mpView->GetMarkedObjectList(); SdrObject* pObj = rMarkList.GetMark(0)->GetMarkedSdrObj(); if( rMarkList.GetMarkCount() == 1 && @@ -109,7 +110,8 @@ void FuTransform::DoExecute( SfxRequest& rReq ) if (!pFact) return; - pDlg.reset(pFact->CreateSvxTransformTabDialog(mpViewShell->GetActiveWindow(), &aSet, mpView)); + pDlg.reset(pFact->CreateSvxTransformTabDialog(mpViewShell->GetFrameWeld(), &aSet, mpView)); + bWelded = true; } if (!pDlg) @@ -128,6 +130,8 @@ void FuTransform::DoExecute( SfxRequest& rReq ) // deferred until the dialog ends mpViewShell->Invalidate(SID_RULER_OBJECT); mpViewShell->Cancel(); + if (bWelded) + pDlg->disposeOnce(); }); } |