[Libreoffice-commits] .: svl/source

Ivan Timofeev ivantimofeev at kemper.freedesktop.org
Wed Jul 4 04:49:36 PDT 2012


 svl/source/numbers/zformat.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f4679c1caf3f56f756fdb5d9609710a3ae3a8fd8
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Wed Jul 4 15:44:03 2012 +0400

    cast sal_uInt8 to sal_Int32, otherwise it would invoke valueOf(sal_Bool)
    
    Change-Id: Ibdd7b9213c073035a34cab11a6ec6f6d07bc6b13

diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 7b66797..5b20717 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 );


More information about the Libreoffice-commits mailing list