diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-12-01 19:07:45 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-12-01 19:16:07 +0400 |
commit | 02a236be613b5b5fae1412bb01e28c0ba1d6b725 (patch) | |
tree | 562456abc3ad7536a02bb5d0d16877c07fe759dd /cui/source/tabpages/numfmt.cxx | |
parent | 1611806226329e5532e6393d0ac2275d7e99eb61 (diff) |
fix String->OUString conversion
OUString::valueOf(sal_uInt16) means OUString::valueOf(sal_Unicode),
we want OUString::valueOf(sal_Int32)
regression from 2cb8883cfd1c6ffe293497f064f90f76d12eff32
Change-Id: Ie1ea4de258b9f94f1c0cfec4335512e15be02e68
Diffstat (limited to 'cui/source/tabpages/numfmt.cxx')
-rw-r--r-- | cui/source/tabpages/numfmt.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index 12c267b028a9..fd4cd155f612 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -1014,8 +1014,8 @@ void SvxNumberFormatTabPage::UpdateOptions_Impl( sal_Bool bCheckCatChange /*= sa aEdLeadZeroes.Enable(); aBtnNegRed.Enable(); aBtnThousand.Enable(); - aEdDecimals .SetText( OUString::valueOf( nDecimals ) ); - aEdLeadZeroes.SetText( OUString::valueOf( nZeroes ) ); + aEdDecimals .SetText( OUString::valueOf( static_cast<sal_Int32>(nDecimals) ) ); + aEdLeadZeroes.SetText( OUString::valueOf( static_cast<sal_Int32>(nZeroes) ) ); aBtnNegRed .Check( bNegRed ); aBtnThousand .Check( bThousand ); break; |