Commit b6309a98 authored by GoshaZotov's avatar GoshaZotov

fix bug 35108

parent b2792758
...@@ -4338,7 +4338,7 @@ ...@@ -4338,7 +4338,7 @@
//renameDependencyNodes before move cells to store current location in history //renameDependencyNodes before move cells to store current location in history
var changedFormulas = this.renameDependencyNodes({offsetRow: dif, offsetCol: 0}, oBBox); var changedFormulas = this.renameDependencyNodes({offsetRow: dif, offsetCol: 0}, oBBox);
var redrawTablesArr; var redrawTablesArr;
if (!this.workbook.bUndoChanges) { if (!this.workbook.bUndoChanges && undefined === displayNameFormatTable) {
redrawTablesArr = this.autoFilters.insertRows("insCell", oBBox, c_oAscInsertOptions.InsertCellsAndShiftDown, redrawTablesArr = this.autoFilters.insertRows("insCell", oBBox, c_oAscInsertOptions.InsertCellsAndShiftDown,
displayNameFormatTable); displayNameFormatTable);
} }
...@@ -4372,6 +4372,13 @@ ...@@ -4372,6 +4372,13 @@
this.workbook.dependencyFormulas.notifyChanged(changedFormulas); this.workbook.dependencyFormulas.notifyChanged(changedFormulas);
History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ShiftCellsBottom, this.getId(), oActualRange, new UndoRedoData_BBox(oBBox)); History.Add(AscCommonExcel.g_oUndoRedoWorksheet, AscCH.historyitem_Worksheet_ShiftCellsBottom, this.getId(), oActualRange, new UndoRedoData_BBox(oBBox));
//пока перенес добавление только последней строки(в данном случае порядок занесения в истрию должен быть именно в таком порядке)
//TODO возможно стоит полностью перенести сюда обработку для ф/т и а/ф
if (!this.workbook.bUndoChanges && undefined !== displayNameFormatTable) {
redrawTablesArr = this.autoFilters.insertRows("insCell", oBBox, c_oAscInsertOptions.InsertCellsAndShiftDown,
displayNameFormatTable);
}
if(!this.workbook.bUndoChanges) if(!this.workbook.bUndoChanges)
{ {
this.autoFilters.redrawStylesTables(redrawTablesArr); this.autoFilters.redrawStylesTables(redrawTablesArr);
......
...@@ -1629,7 +1629,7 @@ ...@@ -1629,7 +1629,7 @@
for(var i = 0; i < tableParts.length; i++) for(var i = 0; i < tableParts.length; i++)
changeFilter(tableParts[i], true); changeFilter(tableParts[i], true);
if(displayNameFormatTable && type == 'insCell') if(displayNameFormatTable && type === 'insCell')
{ {
redrawTablesArr = redrawTablesArr.concat(this.insertLastTableRow(displayNameFormatTable, activeRange)); redrawTablesArr = redrawTablesArr.concat(this.insertLastTableRow(displayNameFormatTable, activeRange));
} }
......
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