diff options
Diffstat (limited to 'svtools/source/config/accessibilityoptions.cxx')
-rw-r--r-- | svtools/source/config/accessibilityoptions.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/config/accessibilityoptions.cxx b/svtools/source/config/accessibilityoptions.cxx index 126af32bdb92..1ef43d1c05e4 100644 --- a/svtools/source/config/accessibilityoptions.cxx +++ b/svtools/source/config/accessibilityoptions.cxx @@ -652,9 +652,10 @@ SvtAccessibilityOptions::~SvtAccessibilityOptions() void SvtAccessibilityOptions::Notify( SfxBroadcaster&, const SfxHint& rHint ) { NotifyListeners(0); - if ( rHint.IsA(TYPE(SfxSimpleHint)) ) + const SfxSimpleHint* pSfxSimpleHint = dynamic_cast<const SfxSimpleHint*>(&rHint); + if ( pSfxSimpleHint ) { - if ( ((SfxSimpleHint&)rHint).GetId() == SFX_HINT_ACCESSIBILITY_CHANGED ) + if ( pSfxSimpleHint->GetId() == SFX_HINT_ACCESSIBILITY_CHANGED ) SetVCLSettings(); } } |