diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-07-04 15:44:03 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-07-04 15:49:13 +0400 |
commit | f4679c1caf3f56f756fdb5d9609710a3ae3a8fd8 (patch) | |
tree | 1fb88a614065155663a9808e7965625497942ca3 /svl/source | |
parent | 359f8cebb699954700faae18961519ccfd5ebaef (diff) |
cast sal_uInt8 to sal_Int32, otherwise it would invoke valueOf(sal_Bool)
Change-Id: Ibdd7b9213c073035a34cab11a6ec6f6d07bc6b13
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/numbers/zformat.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 7b6679759222..5b207171115e 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -941,7 +941,7 @@ SvNumberformat::SvNumberformat(String& rString, if (pSc->GetNatNumModifier() && !NumFor[nIndex].GetNatNum().IsSet()) { rtl::OUString aNat( "[NatNum"); - aNat += rtl::OUString::valueOf( pSc->GetNatNumModifier()); + aNat += rtl::OUString::valueOf( sal_Int32(pSc->GetNatNumModifier())); aNat += "]"; sStr.Insert( aNat, 0); NumFor[nIndex].SetNatNumNum( pSc->GetNatNumModifier(), false ); |