summaryrefslogtreecommitdiff
path: root/sw/source/uibase/misc/redlndlg.cxx
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 /sw/source/uibase/misc/redlndlg.cxx
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 'sw/source/uibase/misc/redlndlg.cxx')
-rw-r--r--sw/source/uibase/misc/redlndlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx
index 86da5fa73df2..d3159a43eb0f 100644
--- a/sw/source/uibase/misc/redlndlg.cxx
+++ b/sw/source/uibase/misc/redlndlg.cxx
@@ -60,9 +60,9 @@ SwRedlineAcceptChild::SwRedlineAcceptChild(vcl::Window* _pParent,
SfxChildWinInfo* pInfo)
: SwChildWinWrapper(_pParent, nId)
{
- SetController(std::make_shared<SwModelessRedlineAcceptDlg>(pBindings, this, _pParent->GetFrameWeld()));
-
- static_cast<SwModelessRedlineAcceptDlg*>(GetController().get())->Initialize(pInfo);
+ auto xDlg = std::make_shared<SwModelessRedlineAcceptDlg>(pBindings, this, _pParent->GetFrameWeld());
+ SetController(xDlg);
+ xDlg->Initialize(pInfo);
}
// newly initialise dialog after document switch