Commit 722b1f2c authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

Bug 19679 - Теряются данные в строках после удаления вышестоящей строки и...

Bug 19679 - Теряются данные в строках после удаления вышестоящей строки и восстановления с помощью Undo

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48963 954022d7-b5bf-4e40-9824-e11837661b57
parent f08c8b0f
...@@ -25,6 +25,8 @@ var historyitem_Worksheet_SetHyperlink = 16; ...@@ -25,6 +25,8 @@ var historyitem_Worksheet_SetHyperlink = 16;
var historyitem_Worksheet_RemoveHyperlink = 17; var historyitem_Worksheet_RemoveHyperlink = 17;
var historyitem_Worksheet_Rename = 18; var historyitem_Worksheet_Rename = 18;
var historyitem_Worksheet_Hide = 19; var historyitem_Worksheet_Hide = 19;
//не добавляем в историю события historyitem_Worksheet_CreateRow, CreateCol, CreateCell - потому что появляется много ошибок(например удаление строк, если снизу были данные и undo)
//они решают только одну проблему, что когда есть стиль колонки, а мы создаем ячейку, при полном undo не отменится стиль ячейки.
var historyitem_Worksheet_CreateRow = 20; var historyitem_Worksheet_CreateRow = 20;
var historyitem_Worksheet_CreateCol = 21; var historyitem_Worksheet_CreateCol = 21;
var historyitem_Worksheet_CreateCell = 22; var historyitem_Worksheet_CreateCell = 22;
......
...@@ -3236,7 +3236,7 @@ Woorksheet.prototype._getCell=function(row, col){ ...@@ -3236,7 +3236,7 @@ Woorksheet.prototype._getCell=function(row, col){
this.nRowsCount = row + 1; this.nRowsCount = row + 1;
if(col + 1 > this.nColsCount) if(col + 1 > this.nColsCount)
this.nColsCount = col + 1; this.nColsCount = col + 1;
History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_CreateCell, this.getId(), null, new UndoRedoData_CellSimpleData(row, col, null, null)); //History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_CreateCell, this.getId(), null, new UndoRedoData_CellSimpleData(row, col, null, null));
} }
return oCurCell; return oCurCell;
}; };
...@@ -3280,7 +3280,7 @@ Woorksheet.prototype._getRow=function(row){ ...@@ -3280,7 +3280,7 @@ Woorksheet.prototype._getRow=function(row){
oCurRow.create(row + 1); oCurRow.create(row + 1);
this.aGCells[row] = oCurRow; this.aGCells[row] = oCurRow;
this.nRowsCount = row > this.nRowsCount ? row : this.nRowsCount ; this.nRowsCount = row > this.nRowsCount ? row : this.nRowsCount ;
History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_CreateRow, this.getId(), null, new UndoRedoData_SingleProperty(row)); //History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_CreateRow, this.getId(), null, new UndoRedoData_SingleProperty(row));
} }
return oCurRow; return oCurRow;
}; };
...@@ -3306,7 +3306,7 @@ Woorksheet.prototype._getCol=function(index){ ...@@ -3306,7 +3306,7 @@ Woorksheet.prototype._getCol=function(index){
oCurCol = new Col(this, index); oCurCol = new Col(this, index);
this.aCols[index] = oCurCol; this.aCols[index] = oCurCol;
this.nColsCount = index > this.nColsCount ? index : this.nColsCount; this.nColsCount = index > this.nColsCount ? index : this.nColsCount;
History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_CreateCol, this.getId(), null, new UndoRedoData_SingleProperty(index)); //History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_CreateCol, this.getId(), null, new UndoRedoData_SingleProperty(index));
} }
} }
return oCurCol; return oCurCol;
......
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