diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/app/docst.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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<SfxNewStyleDlg> 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)); } } |