summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/SpellDialogChildWindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/dlg/SpellDialogChildWindow.cxx')
-rw-r--r--sd/source/ui/dlg/SpellDialogChildWindow.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/dlg/SpellDialogChildWindow.cxx b/sd/source/ui/dlg/SpellDialogChildWindow.cxx
index febfef0df28d..c87919346322 100644
--- a/sd/source/ui/dlg/SpellDialogChildWindow.cxx
+++ b/sd/source/ui/dlg/SpellDialogChildWindow.cxx
@@ -110,12 +110,12 @@ void SpellDialogChildWindow::EndSpellingAndClearOutliner()
void SpellDialogChildWindow::Notify(SfxBroadcaster&, const SfxHint& rHint)
{
- if (const SdrHint* pSdrHint = dynamic_cast<const SdrHint*>(&rHint))
+ if (rHint.GetId() != SfxHintId::ThisIsAnSdrHint)
+ return;
+ const SdrHint* pSdrHint = static_cast<const SdrHint*>(&rHint);
+ if (SdrHintKind::ModelCleared == pSdrHint->GetKind())
{
- if (SdrHintKind::ModelCleared == pSdrHint->GetKind())
- {
- EndSpellingAndClearOutliner();
- }
+ EndSpellingAndClearOutliner();
}
}