Commit 391893e6 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

Bug 24751 - Пропадают данные после Undo/Redo применения Merge к ячейкам

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56641 954022d7-b5bf-4e40-9824-e11837661b57
parent c7c3854b
......@@ -4286,10 +4286,19 @@ Cell.prototype.setValueData = function(Val){
this.setValue("=" + Val.formula);
else if(null != Val.value)
{
var DataOld = null;
var DataNew = null;
if (History.Is_On())
DataOld = this.getValueData();
this.setValueCleanFormula();
this.oValue = Val.value.clone(this);
sortDependency(this.ws.workbook);
}
if (History.Is_On()) {
DataNew = this.getValueData();
if (false == DataOld.isEqual(DataNew))
History.Add(g_oUndoRedoCell, historyitem_Cell_ChangeValue, this.ws.getId(), new Asc.Range(this.oId.getCol0(), this.oId.getRow0(), this.oId.getCol0(), this.oId.getRow0()), new UndoRedoData_CellSimpleData(this.oId.getRow0(), this.oId.getCol0(), DataOld, DataNew));
}
}
else
this.setValue("");
};
......
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