summaryrefslogtreecommitdiff
path: root/sc/source/ui/optdlg/tpview.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/optdlg/tpview.cxx')
-rw-r--r--sc/source/ui/optdlg/tpview.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/optdlg/tpview.cxx b/sc/source/ui/optdlg/tpview.cxx
index 4511ce716664..c2db50993c06 100644
--- a/sc/source/ui/optdlg/tpview.cxx
+++ b/sc/source/ui/optdlg/tpview.cxx
@@ -308,7 +308,7 @@ void ScTpContentOptions::InitGridOpt()
{
SfxObjectShell* pDocSh = SfxObjectShell::Current();
// there might be another DocShell here
- pDocSh = PTR_CAST(ScDocShell, pDocSh);
+ pDocSh = dynamic_cast<ScDocShell*>( pDocSh );
XColorListRef pColorList;
if ( pDocSh )
@@ -459,7 +459,7 @@ VclPtr<SfxTabPage> ScTpLayoutOptions::Create( vcl::Window* pParent,
const SfxItemSet* rCoreSet )
{
VclPtrInstance<ScTpLayoutOptions> pNew( pParent, *rCoreSet );
- ScDocShell* pDocSh = PTR_CAST(ScDocShell,SfxObjectShell::Current());
+ ScDocShell* pDocSh = dynamic_cast< ScDocShell *>( SfxObjectShell::Current() );
if(pDocSh!=NULL)
pNew->SetDocument(&pDocSh->GetDocument());