diff options
Diffstat (limited to 'sc/source/ui/view/hdrcont.cxx')
-rw-r--r-- | sc/source/ui/view/hdrcont.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/view/hdrcont.cxx b/sc/source/ui/view/hdrcont.cxx index 6bcc0bbd357f..ece03625ac4d 100644 --- a/sc/source/ui/view/hdrcont.cxx +++ b/sc/source/ui/view/hdrcont.cxx @@ -818,8 +818,7 @@ void ScHeaderControl::Command( const CommandEvent& rCEvt ) // execute popup menu - ScTabViewShell* pViewSh = PTR_CAST( ScTabViewShell, - SfxViewShell::Current() ); + ScTabViewShell* pViewSh = dynamic_cast< ScTabViewShell *>( SfxViewShell::Current() ); if ( pViewSh ) { if ( rCEvt.IsMouseEvent() ) |