diff options
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/view.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index c934e90ef4f3..a03e497f22c3 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -2037,9 +2037,10 @@ IMPL_LINK( SmViewShell, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg ) void SmViewShell::Notify( SfxBroadcaster& , const SfxHint& rHint ) { - if ( rHint.IsA(TYPE(SfxSimpleHint)) ) + const SfxSimpleHint* pSimpleHint = dynamic_cast<const SfxSimpleHint*>(&rHint); + if ( pSimpleHint ) { - switch( ( (SfxSimpleHint&) rHint ).GetId() ) + switch( pSimpleHint->GetId() ) { case SFX_HINT_MODECHANGED: case SFX_HINT_DOCCHANGED: |