diff options
Diffstat (limited to 'sfx2/source/view/viewsh.cxx')
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index e02c25f00321..9b40bb40f6de 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -1560,9 +1560,10 @@ SfxViewShell* SfxViewShell::GetNext void SfxViewShell::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { - if ( rHint.IsA(TYPE(SfxEventHint)) ) + const SfxEventHint* pEventHint = dynamic_cast<const SfxEventHint*>(&rHint); + if ( pEventHint ) { - switch ( ((SfxEventHint&)rHint).GetEventId() ) + switch ( pEventHint->GetEventId() ) { case SFX_EVENT_LOADFINISHED: { |