summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/srcview.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/uiview/srcview.cxx')
-rw-r--r--sw/source/uibase/uiview/srcview.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/sw/source/uibase/uiview/srcview.cxx b/sw/source/uibase/uiview/srcview.cxx
index 0735970b5bd8..b900589433f2 100644
--- a/sw/source/uibase/uiview/srcview.cxx
+++ b/sw/source/uibase/uiview/srcview.cxx
@@ -752,14 +752,10 @@ sal_Int32 SwSrcView::PrintSource(
void SwSrcView::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
{
- const SfxSimpleHint* pSimpleHint = dynamic_cast<const SfxSimpleHint*>(&rHint);
- if ( pSimpleHint &&
+ if ( rHint.GetId() == SFX_HINT_MODECHANGED ||
(
- pSimpleHint->GetId() == SFX_HINT_MODECHANGED ||
- (
- pSimpleHint->GetId() == SFX_HINT_TITLECHANGED &&
- !GetDocShell()->IsReadOnly() && aEditWin->IsReadonly()
- )
+ rHint.GetId() == SFX_HINT_TITLECHANGED &&
+ !GetDocShell()->IsReadOnly() && aEditWin->IsReadonly()
)
)
{