summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/tpshadow.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-09-24 10:01:40 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-09-24 13:19:20 +0200
commit52a626ffb48d2b04a355b31063ca58198e8c2e11 (patch)
tree2cc228d680ef7204aa79ae90c5fccfc0eeefaf5c /cui/source/tabpages/tpshadow.cxx
parentbf9f52bd6ace32cd5b83609ef4b9c7f630433694 (diff)
should use the controller here
Change-Id: Ic6a97c0032521bf7099ba1ef9a1ab196d50e0894 Reviewed-on: https://gerrit.libreoffice.org/79445 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/tabpages/tpshadow.cxx')
-rw-r--r--cui/source/tabpages/tpshadow.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/tabpages/tpshadow.cxx b/cui/source/tabpages/tpshadow.cxx
index 63b1fa8f89dc..a64b108657ba 100644
--- a/cui/source/tabpages/tpshadow.cxx
+++ b/cui/source/tabpages/tpshadow.cxx
@@ -184,14 +184,14 @@ void SvxShadowTabPage::ActivatePage( const SfxItemSet& rSet )
{
if( *m_pnColorListState & ChangeType::CHANGED )
{
- SvxAreaTabDialog* pArea = dynamic_cast< SvxAreaTabDialog* >( GetParentDialog() );
+ SvxAreaTabDialog* pArea = dynamic_cast<SvxAreaTabDialog*>(GetDialogController());
if( pArea )
{
m_pColorList = pArea->GetNewColorList();
}
else
{
- SvxLineTabDialog* pLine = dynamic_cast< SvxLineTabDialog* >( GetParentDialog() );
+ SvxLineTabDialog* pLine = dynamic_cast<SvxLineTabDialog*>(GetDialogController());
if( pLine )
m_pColorList = pLine->GetNewColorList();
}