summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-12-09 13:04:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-01-23 15:29:31 +0100
commite5e337fb77cff58436dd943b1e623811d3a11bd3 (patch)
tree8c4e5e367b1fa9b9f6853aeefd0c927fe2ae5e53 /sc/source/ui/view
parent66ed51712bb323bba7d1a0b0d21b256e5f5f9ccf (diff)
weld SvxFontWorkDialog
Change-Id: If9da7ad6a834d22f1bcab8d41ce7fe1f80168946 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/84774 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/reffact.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/reffact.cxx b/sc/source/ui/view/reffact.cxx
index fc2c35bab2b8..61db86ea000a 100644
--- a/sc/source/ui/view/reffact.cxx
+++ b/sc/source/ui/view/reffact.cxx
@@ -224,8 +224,9 @@ ScAcceptChgDlgWrapper::ScAcceptChgDlgWrapper(vcl::Window* pParentP,
OSL_ENSURE( pViewShell, "missing view shell :-(" );
if (pViewShell)
{
- SetController(std::make_shared<ScAcceptChgDlg>(pBindings, this, pParentP->GetFrameWeld(), &pViewShell->GetViewData()));
- static_cast<ScAcceptChgDlg*>(GetController().get())->Initialize( pInfo );
+ auto xDlg = std::make_shared<ScAcceptChgDlg>(pBindings, this, pParentP->GetFrameWeld(), &pViewShell->GetViewData());
+ SetController(xDlg);
+ xDlg->Initialize( pInfo );
}
else
SetController( nullptr );