Skip to content

Commit

Permalink
[se] For bug 72852
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Jan 28, 2025
1 parent 83e043a commit 39c9695
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cell/model/UndoRedo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4813,6 +4813,19 @@ function (window, undefined) {
}
return new UndoRedoItemSerializable(ToClass, type, nSheetId, oRange, data, LocalChange);
};
UndoRedoAutoFilters.prototype.CommuteRelated = function (oActionToUndo, oActionOther) {
if (AscCommonExcel.g_oUndoRedoAutoFilters === oActionOther.oClass) {
//изменения в форматированной таблице. например добавление total
return false;
}
let res = true;
if (AscCH.historyitem_AutoFilter_Empty === oActionToUndo.nActionType) {
if(oActionToUndo.oData.activeCells) {
res = AscCommonExcel.g_oUndoRedoWorksheet.CommuteRelatedRange(oActionToUndo.oData.activeCells, oActionOther);
}
}
return res;
}

function UndoRedoSparklines(wb) {
UndoRedoClassBase.call(this);
Expand Down

0 comments on commit 39c9695

Please sign in to comment.