summaryrefslogtreecommitdiff
path: root/svx/source/mnuctrls/fntctl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/mnuctrls/fntctl.cxx')
-rw-r--r--svx/source/mnuctrls/fntctl.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/mnuctrls/fntctl.cxx b/svx/source/mnuctrls/fntctl.cxx
index 65ca2d5073d9..5f4e7966d570 100644
--- a/svx/source/mnuctrls/fntctl.cxx
+++ b/svx/source/mnuctrls/fntctl.cxx
@@ -119,8 +119,9 @@ void SvxFontMenuControl::StateChanged(
void SvxFontMenuControl::Notify( SfxBroadcaster&, const SfxHint& rHint )
{
- if ( rHint.Type() != TYPE(SfxSimpleHint) &&
- ( (SfxSimpleHint&)rHint ).GetId() == SFX_HINT_DOCCHANGED )
+ const SfxSimpleHint* pSimpleHint = dynamic_cast<const SfxSimpleHint*>( &rHint );
+ if ( pSimpleHint &&
+ pSimpleHint->GetId() == SFX_HINT_DOCCHANGED )
FillMenu();
}