diff options
Diffstat (limited to 'sc/source/ui/inc/ChildWindowWrapper.hxx')
-rw-r--r-- | sc/source/ui/inc/ChildWindowWrapper.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/inc/ChildWindowWrapper.hxx b/sc/source/ui/inc/ChildWindowWrapper.hxx index aec24f93d6cd..bfedab53af8d 100644 --- a/sc/source/ui/inc/ChildWindowWrapper.hxx +++ b/sc/source/ui/inc/ChildWindowWrapper.hxx @@ -28,7 +28,7 @@ public: { ScTabViewShell* pViewShell = getTabViewShell( pBindings ); if (!pViewShell) - pViewShell = PTR_CAST( ScTabViewShell, SfxViewShell::Current() ); + pViewShell = dynamic_cast< ScTabViewShell *>( SfxViewShell::Current() ); OSL_ENSURE(pViewShell, "Missing view shell!"); if (pViewShell) |