WaE : shadow variable

Change-Id: I394817653afa738e7e3d19a1d82f892fb3b35c19
This commit is contained in:
Norbert Thiebaud
2012-11-18 21:05:45 -06:00
parent 731ba0ef92
commit 30fa6e86a5

View File

@@ -626,15 +626,16 @@ void ScDrawStringsVars::SetTextToWidthOrHash( ScBaseCell* pCell, long nWidth )
long nMaxDigit = GetMaxDigitWidth();
sal_uInt16 nNumDigits = static_cast<sal_uInt16>(nWidth / nMaxDigit);
OUString sTempOut(aString);
if (!pNumFormat->GetOutputString(fVal, nNumDigits, sTempOut))
{
OUString sTempOut(aString);
if (!pNumFormat->GetOutputString(fVal, nNumDigits, sTempOut))
{
aString = sTempOut;
// Failed to get output string. Bail out.
return;
}
aString = sTempOut;
// Failed to get output string. Bail out.
return;
}
aString = sTempOut;
sal_uInt8 nSignCount = 0, nDecimalCount = 0, nExpCount = 0;
xub_StrLen nLen = aString.Len();
sal_Unicode cDecSep = ScGlobal::GetpLocaleData()->getLocaleItem().decimalSeparator.getStr()[0];