Skip to content

Commit

Permalink
[se] By bug 72852: fix undo add table
Browse files Browse the repository at this point in the history
  • Loading branch information
GoshaZotov committed Jan 28, 2025
1 parent e62ad5e commit 7fb3cae
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cell/model/UndoRedo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4783,6 +4783,17 @@ function (window, undefined) {
return AscCH.historyitem_AutoFilter_Add === Type || AscCH.historyitem_AutoFilter_ChangeTableName === Type ||
AscCH.historyitem_AutoFilter_Empty === Type || AscCH.historyitem_AutoFilter_ChangeColumnName === Type;
};
UndoRedoAutoFilters.prototype.CreateReverseChangeSpreadsheet = function (ToClass, nActionType, nSheetId, oRange, oData, LocalChange) {
let type, data;
if (AscCH.historyitem_AutoFilter_Add === nActionType) {
type = AscCH.historyitem_AutoFilter_Empty;
data = new AscCommonExcel.UndoRedoData_AutoFilter();
data.activeCells = oData.activeCells;
} else {
return;
}
return new UndoRedoItemSerializable(ToClass, type, nSheetId, oRange, data, LocalChange);
};

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

0 comments on commit 7fb3cae

Please sign in to comment.