diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 9434567a09a4..469ad6839c45 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -3053,16 +3053,16 @@ void SvxCurrencyToolBoxControl::Select( sal_uInt16 nSelectModifier ) nFormatKey = m_nFormatKey; } - Sequence< PropertyValue > aArgs( 1 ); - aArgs[0].Name = "NumberFormatCurrency"; if( nFormatKey != NUMBERFORMAT_ENTRY_NOT_FOUND ) { + Sequence< PropertyValue > aArgs( 1 ); + aArgs[0].Name = "NumberFormatCurrency"; aArgs[0].Value = makeAny( nFormatKey ); + Dispatch( m_aCommandURL, aArgs ); m_nFormatKey = nFormatKey; } - SfxToolBoxControl::Dispatch( Reference< XDispatchProvider >( m_xFrame->getController(), UNO_QUERY ), - ".uno:NumberFormatCurrency", - aArgs ); + else + SfxToolBoxControl::Select( nSelectModifier ); } static void lcl_CalcSizeValueSet( vcl::Window &rWin, ValueSet &rValueSet, const Size &aItemSize ) |