Commit eb9ac016 authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

дополнение для Bug 19969 - Формат отображения General сбрасывается после пересчета функции в ячейке

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56876 954022d7-b5bf-4e40-9824-e11837661b57
parent 378d8b20
......@@ -1668,7 +1668,8 @@ cTEXT.prototype.Calculate = function ( arg ) {
arg0 = _tmp;
var oFormat = oNumFormatCache.get( arg1.toString() );
var aText = oFormat.format( arg0.getValue(), arg0 instanceof cNumber ? CellValueType.Number : CellValueType.String, gc_nMaxDigCountView, null );
var a = g_oFormatParser.parse(arg0.getValue()+""), aText;
aText = oFormat.format( a ? a.value:arg0.getValue(), arg0 instanceof cNumber || a ? CellValueType.Number : CellValueType.String, gc_nMaxDigCountView, null );
var text = "";
for ( var i = 0, length = aText.length; i < length; ++i ) {
......
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