Commit 50369b43 authored by Alexander.Trofimov's avatar Alexander.Trofimov

setNumFormat across setNum

parent 232c0fc9
......@@ -5552,10 +5552,7 @@
this.oValue.cleanCache();
};
Cell.prototype.setNumFormat=function(val){
var oRes = this.ws.workbook.oStyleManager.setNum(this, new AscCommonExcel.Num({f:val}));
if(History.Is_On() && oRes.oldVal != oRes.newVal)
History.Add(AscCommonExcel.g_oUndoRedoCell, AscCH.historyitem_Cell_Num, this.ws.getId(), new Asc.Range(this.nCol, this.nRow, this.nCol, this.nRow), new UndoRedoData_CellSimpleData(this.nRow, this.nCol, oRes.oldVal, oRes.newVal));
this.oValue.cleanCache();
this.setNum(new AscCommonExcel.Num({f:val}));
};
Cell.prototype.setNum=function(val){
var oRes = this.ws.workbook.oStyleManager.setNum(this, val);
......
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