From 854d8c418904bbb9370ca6ee0aad6bde5deb426e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 6 Apr 2018 16:06:49 +0100 Subject: weld SfxNewStyleDlg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit set some parents and replace VclComboBoxText with an entry and a treeview Change-Id: Ied75176355f23c986eac4d5de8654472a15dbbbf Reviewed-on: https://gerrit.libreoffice.org/52517 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/uibase/app/docst.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sw') diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx index 6c748709b94e..534f96f4fadd 100644 --- a/sw/source/uibase/app/docst.cxx +++ b/sw/source/uibase/app/docst.cxx @@ -382,10 +382,10 @@ void SwDocShell::ExecStyleSheet( SfxRequest& rReq ) { case SID_STYLE_NEW_BY_EXAMPLE: { - VclPtrInstance pDlg( nullptr, *GetStyleSheetPool()); - if(RET_OK == pDlg->Execute()) + SfxNewStyleDlg aDlg(GetView()->GetViewFrame()->GetWindow().GetFrameWeld(), *GetStyleSheetPool()); + if (aDlg.run() == RET_OK) { - aParam = pDlg->GetName(); + aParam = aDlg.GetName(); rReq.AppendItem(SfxStringItem(nSlot, aParam)); } } -- cgit