diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx index 89e0cc223fa3..49d564bc729c 100644 --- a/cui/source/customize/acccfg.cxx +++ b/cui/source/customize/acccfg.cxx @@ -1474,7 +1474,7 @@ void SfxAcceleratorConfigPage::Reset( const SfxItemSet* rSet ) const SfxPoolItem* pMacroItem=0; if( SfxItemState::SET == rSet->GetItemState( SID_MACROINFO, true, &pMacroItem ) ) { - m_pMacroInfoItem = dynamic_cast( pMacroItem ); + m_pMacroInfoItem = &dynamic_cast(*pMacroItem); m_pGroupLBox->SelectMacro( m_pMacroInfoItem ); } else