summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/tpstat.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/docshell/tpstat.cxx')
-rw-r--r--sc/source/ui/docshell/tpstat.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/tpstat.cxx b/sc/source/ui/docshell/tpstat.cxx
index 0be22a9b0428..2675f2834263 100644
--- a/sc/source/ui/docshell/tpstat.cxx
+++ b/sc/source/ui/docshell/tpstat.cxx
@@ -39,7 +39,7 @@ ScDocStatPage::ScDocStatPage( vcl::Window *pParent, const SfxItemSet& rSet )
get(m_pFtCells,"nocells");
get(m_pFtPages,"nopages");
get(m_pFtFormula,"noformula");
- ScDocShell* pDocSh = PTR_CAST( ScDocShell, SfxObjectShell::Current() );
+ ScDocShell* pDocSh = dynamic_cast<ScDocShell*>( SfxObjectShell::Current() );
ScDocStat aDocStat;
if ( pDocSh )