Kaydet (Commit) 02a236be authored tarafından Ivan Timofeev's avatar Ivan Timofeev

fix String->OUString conversion

OUString::valueOf(sal_uInt16) means OUString::valueOf(sal_Unicode),
we want OUString::valueOf(sal_Int32)

regression from 2cb8883c

Change-Id: Ie1ea4de258b9f94f1c0cfec4335512e15be02e68
üst 16118062
......@@ -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;
......
......@@ -1280,11 +1280,11 @@ void SvxNumOptionsTabPage::Reset( const SfxItemSet& rSet )
if(!aLevelLB.GetEntryCount())
{
for(sal_uInt16 i = 1; i <= pSaveNum->GetLevelCount(); i++)
aLevelLB.InsertEntry( OUString::valueOf(i));
aLevelLB.InsertEntry( OUString::valueOf(static_cast<sal_Int32>(i)));
if(pSaveNum->GetLevelCount() > 1)
{
OUString sEntry( "1 - " );
sEntry += OUString::valueOf( pSaveNum->GetLevelCount() );
sEntry += OUString::valueOf( static_cast<sal_Int32>(pSaveNum->GetLevelCount()) );
aLevelLB.InsertEntry(sEntry);
aLevelLB.SelectEntry(sEntry);
}
......@@ -3044,11 +3044,11 @@ void SvxNumPositionTabPage::Reset( const SfxItemSet& rSet )
if(!aLevelLB.GetEntryCount())
{
for(sal_uInt16 i = 1; i <= pSaveNum->GetLevelCount(); i++)
aLevelLB.InsertEntry( OUString::valueOf(i) );
aLevelLB.InsertEntry( OUString::valueOf(static_cast<sal_Int32>(i)) );
if(pSaveNum->GetLevelCount() > 1)
{
OUString sEntry( "1 - " );
sEntry += OUString::valueOf( pSaveNum->GetLevelCount() );
sEntry += OUString::valueOf( static_cast<sal_Int32>(pSaveNum->GetLevelCount()) );
aLevelLB.InsertEntry(sEntry);
aLevelLB.SelectEntry(sEntry);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment