mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
Bug 19679 - Теряются данные в строках после удаления вышестоящей строки и восстановления с помощью Undo
git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48963 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander.Trofimov
parent
f08c8b0fcc
commit
722b1f2c86
@ -25,6 +25,8 @@ var historyitem_Worksheet_SetHyperlink = 16;
|
||||
var historyitem_Worksheet_RemoveHyperlink = 17;
|
||||
var historyitem_Worksheet_Rename = 18;
|
||||
var historyitem_Worksheet_Hide = 19;
|
||||
//не добавляем в историю события historyitem_Worksheet_CreateRow, CreateCol, CreateCell - потому что появляется много ошибок(например удаление строк, если снизу были данные и undo)
|
||||
//они решают только одну проблему, что когда есть стиль колонки, а мы создаем ячейку, при полном undo не отменится стиль ячейки.
|
||||
var historyitem_Worksheet_CreateRow = 20;
|
||||
var historyitem_Worksheet_CreateCol = 21;
|
||||
var historyitem_Worksheet_CreateCell = 22;
|
||||
|
||||
@ -3236,7 +3236,7 @@ Woorksheet.prototype._getCell=function(row, col){
|
||||
this.nRowsCount = row + 1;
|
||||
if(col + 1 > this.nColsCount)
|
||||
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;
|
||||
};
|
||||
@ -3280,7 +3280,7 @@ Woorksheet.prototype._getRow=function(row){
|
||||
oCurRow.create(row + 1);
|
||||
this.aGCells[row] = oCurRow;
|
||||
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;
|
||||
};
|
||||
@ -3306,7 +3306,7 @@ Woorksheet.prototype._getCol=function(index){
|
||||
oCurCol = new Col(this, index);
|
||||
this.aCols[index] = oCurCol;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user