diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-09 16:21:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-10 21:35:08 +0200 |
commit | aece54a415e5e35d6c5f5cfd1f6d8b3af594d272 (patch) | |
tree | cabf4fd96e97de0724cd3fa1430b129191f7d342 /starmath/source/document.cxx | |
parent | f966767e1ccfa432da33e1a0fd6de69e17a36bc3 (diff) |
weld SpacingDialog
Change-Id: Ida9077b19ad78001c632796257651e4314a9a538
Reviewed-on: https://gerrit.libreoffice.org/52676
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 'starmath/source/document.cxx')
-rw-r--r-- | starmath/source/document.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 9eac89d5f474..b11eb4545618 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -973,15 +973,15 @@ void SmDocShell::Execute(SfxRequest& rReq) case SID_DISTANCE: { - VclPtrInstance< SmDistanceDialog > xDistanceDialog(nullptr); + SmDistanceDialog aDistanceDialog(rReq.GetFrameWeld()); SmFormat aOldFormat = GetFormat(); - xDistanceDialog->ReadFrom( aOldFormat ); - if (xDistanceDialog->Execute() == RET_OK) + aDistanceDialog.ReadFrom( aOldFormat ); + if (aDistanceDialog.run() == RET_OK) { SmFormat aNewFormat( aOldFormat ); - xDistanceDialog->WriteTo(aNewFormat); + aDistanceDialog.WriteTo(aNewFormat); ::svl::IUndoManager *pTmpUndoMgr = GetUndoManager(); if (pTmpUndoMgr) |