Commit de1dcd5f authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete asc_clone from autoCompletFormula

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54288 954022d7-b5bf-4e40-9824-e11837661b57
parent 48e157f0
...@@ -882,9 +882,11 @@ ...@@ -882,9 +882,11 @@
isNumberFormat = (null === cellType || CellValueType.Number === cellType); isNumberFormat = (null === cellType || CellValueType.Number === cellType);
if (isNumberFormat) { if (isNumberFormat) {
// Это число, мы нашли то, что искали // Это число, мы нашли то, что искали
topCell = asc_clone(cell); topCell = {
topCell.r = r; c: ar.startCol,
topCell.c = ar.startCol; r: r,
isFormula: cell.isFormula
};
// смотрим вторую ячейку // смотрим вторую ячейку
if (topCell.isFormula && r-1 >= vr.r1) { if (topCell.isFormula && r-1 >= vr.r1) {
cell = this._getCellTextCache(ar.startCol, r-1); cell = this._getCellTextCache(ar.startCol, r-1);
...@@ -906,9 +908,10 @@ ...@@ -906,9 +908,10 @@
isNumberFormat = (null === cellType || CellValueType.Number === cellType); isNumberFormat = (null === cellType || CellValueType.Number === cellType);
if (isNumberFormat) { if (isNumberFormat) {
// Это число, мы нашли то, что искали // Это число, мы нашли то, что искали
leftCell = asc_clone(cell); leftCell = {
leftCell.r = ar.startRow; r: ar.startRow,
leftCell.c = c; c: c
};
break; break;
} }
} }
......
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