summaryrefslogtreecommitdiff
path: root/sc/source/core/data/stlsheet.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/stlsheet.cxx')
-rw-r--r--sc/source/core/data/stlsheet.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/stlsheet.cxx b/sc/source/core/data/stlsheet.cxx
index 68e70950075b..466a43f92c1e 100644
--- a/sc/source/core/data/stlsheet.cxx
+++ b/sc/source/core/data/stlsheet.cxx
@@ -255,9 +255,9 @@ bool ScStyleSheet::IsUsed() const
void ScStyleSheet::Notify( SfxBroadcaster&, const SfxHint& rHint )
{
- if ( rHint.ISA(SfxSimpleHint) )
- if ( ((SfxSimpleHint&)rHint).GetId() == SFX_HINT_DYING )
- GetItemSet().SetParent( NULL );
+ const SfxSimpleHint* pSimpleHint = dynamic_cast<const SfxSimpleHint*>(&rHint);
+ if ( pSimpleHint && pSimpleHint->GetId() == SFX_HINT_DYING )
+ GetItemSet().SetParent( NULL );
}
// schmutzige Tricks, um die Standard-Vorlage immer als "Standard" zu speichern,