diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-14 11:50:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-14 14:07:06 +0200 |
commit | 6f2bbb3641f4e8fc26c20181ba790362e7472892 (patch) | |
tree | 2c27320700a527399ab1b0049661ef54f7c77b4f /svx/source/toolbars/extrusionbar.cxx | |
parent | 165e57d6c9b980f22e57fb1c4c70d9a8c4aaf1c8 (diff) |
weld ExtrusionDepthDialog
Change-Id: I5905fea310a7f29574d94eaf61c80b6ca09a7467
Reviewed-on: https://gerrit.libreoffice.org/54310
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 'svx/source/toolbars/extrusionbar.cxx')
-rw-r--r-- | svx/source/toolbars/extrusionbar.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/toolbars/extrusionbar.cxx b/svx/source/toolbars/extrusionbar.cxx index f3e0b30bea98..c7fc165671bb 100644 --- a/svx/source/toolbars/extrusionbar.cxx +++ b/svx/source/toolbars/extrusionbar.cxx @@ -570,11 +570,11 @@ void ExtrusionBar::execute( SdrView* pSdrView, SfxRequest const & rReq, SfxBindi double fDepth = rReq.GetArgs()->GetItem<SvxDoubleItem>(SID_EXTRUSION_DEPTH)->GetValue(); FieldUnit eUnit = static_cast<FieldUnit>(rReq.GetArgs()->GetItem<SfxUInt16Item>(SID_ATTR_METRIC)->GetValue()); - ScopedVclPtrInstance< ExtrusionDepthDialog > aDlg(nullptr, fDepth, eUnit); - sal_uInt16 nRet = aDlg->Execute(); - if( nRet != 0 ) + ExtrusionDepthDialog aDlg(rReq.GetFrameWeld(), fDepth, eUnit); + sal_uInt16 nRet = aDlg.run(); + if (nRet == RET_OK) { - fDepth = aDlg->getDepth(); + fDepth = aDlg.getDepth(); SvxDoubleItem aItem( fDepth, SID_EXTRUSION_DEPTH ); SfxPoolItem* aItems[] = { &aItem, nullptr }; |