summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-27 16:47:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-28 10:21:03 +0200
commitf36b923276a07151a07a9e5ff619a7e9f002e6c4 (patch)
treedff548dbbba18cbf3c0e0fa09222c808618f67af
parent60ee74e8ae3c671f0c78c54f5e2546a5cb3185dd (diff)
css.util.XNumberFormats.genarateFormat nLeading param is of type short
Change-Id: If535bbe07df95f93d052705cb665d1b4cae5af01
-rw-r--r--connectivity/source/commontools/dbtools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx
index 4f5e3950a573..adbb61fb4358 100644
--- a/connectivity/source/commontools/dbtools.cxx
+++ b/connectivity/source/commontools/dbtools.cxx
@@ -179,7 +179,7 @@ sal_Int32 getDefaultNumberFormat(sal_Int32 _nDataType,
{
// generate a new format if necessary
Reference< XNumberFormats > xFormats(_xTypes, UNO_QUERY);
- OUString sNewFormat = xFormats->generateFormat( 0L, _rLocale, sal_False, sal_False, (sal_Int16)_nScale, sal_True);
+ OUString sNewFormat = xFormats->generateFormat( 0L, _rLocale, sal_False, sal_False, (sal_Int16)_nScale, 1);
// and add it to the formatter if necessary
nFormat = xFormats->queryKey(sNewFormat, _rLocale, sal_False);