Commit 1182fab1 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

Bug 26017 - Значение в ячейке принимает различный вид при уменьшении шрифта и ширины столбца.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57827 954022d7-b5bf-4e40-9824-e11837661b57
parent 7fa15ad5
......@@ -2448,21 +2448,8 @@ function DecodeGeneralFormat_Raw(val, nValType, dDigitsCount)
{
//если в nVarian1 число помещается полностью, то применяем nVarian1
var bUseVarian1 = false;
if(nVarian1 > 0)
{
var sTempNumber = parts.mantissa.toString();
sTempNumber = sTempNumber.substring(nVarian1, nVarian2);
var nTempNumberLength = sTempNumber.length;
if(nVarian1 > 0 && 0 == (parts.mantissa % Math.pow(10, gc_nMaxDigCount - nVarian1)))
bUseVarian1 = true;
for(var i = 0; i < nTempNumberLength; ++i)
{
if("0" != sTempNumber[i])
{
bUseVarian1 = false;
break;
}
}
}
if(false == bUseVarian1)
{
if(nDigitsCount >= nExpMinDigitsCount + 1)
......
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