summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-09-04 12:58:43 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2016-09-04 13:13:09 +0300
commit04d7143a5f47a3287d0e223352180024f13d9a3c (patch)
treef98d70a06a47f3f8c20baec016dd62a7b6957fbd /svx
parentaaea58f49085184830ef8f55329827a931f9cea8 (diff)
Fix "CntUInt32Item::PutValue - Wrong type" warnings
... when clicking the currency button. Change-Id: I9e137b98a7c2c3025dfd66056b041257e7cf0a12
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx10
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 )