diff options
Diffstat (limited to 'sw/source/uibase/uiview/srcview.cxx')
-rw-r--r-- | sw/source/uibase/uiview/srcview.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/uibase/uiview/srcview.cxx b/sw/source/uibase/uiview/srcview.cxx index 696916637a0b..af86372e7e39 100644 --- a/sw/source/uibase/uiview/srcview.cxx +++ b/sw/source/uibase/uiview/srcview.cxx @@ -767,11 +767,12 @@ sal_Int32 SwSrcView::PrintSource( void SwSrcView::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { - if ( rHint.ISA(SfxSimpleHint) && + const SfxSimpleHint* pSimpleHint = dynamic_cast<const SfxSimpleHint*>(&rHint); + if ( pSimpleHint && ( - ((SfxSimpleHint&) rHint).GetId() == SFX_HINT_MODECHANGED || + pSimpleHint->GetId() == SFX_HINT_MODECHANGED || ( - ((SfxSimpleHint&) rHint).GetId() == SFX_HINT_TITLECHANGED && + pSimpleHint->GetId() == SFX_HINT_TITLECHANGED && !GetDocShell()->IsReadOnly() && aEditWin.IsReadonly() ) ) |