summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/tpcolor.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx
index 048e4585e931..40a288020e82 100644
--- a/cui/source/tabpages/tpcolor.cxx
+++ b/cui/source/tabpages/tpcolor.cxx
@@ -69,9 +69,7 @@ XPropertyListRef SvxColorTabPage::GetList()
// URGH - abstract this nicely ... for re-using SvxLoadSaveEmbed
if( !pList.is() ) {
- SvxColorTabPage *pPage = dynamic_cast< SvxColorTabPage *>( this );
- if( pPage )
- pList = pPage->GetColorList();
+ pList = GetColorList();
}
return XPropertyListRef( static_cast< XPropertyList * >( pList.get() ) );