Skip to content

Commit

Permalink
[se] For historyitem_Worksheet_SetTopLeftCell
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Jan 27, 2025
1 parent 6150480 commit 538bec0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cell/model/UndoRedo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3303,7 +3303,8 @@ function (window, undefined) {
AscCH.historyitem_Worksheet_SetTabColor === Type || AscCH.historyitem_Worksheet_SetSummaryRight === Type ||
AscCH.historyitem_Worksheet_SetSummaryBelow === Type || AscCH.historyitem_Worksheet_GroupRow === Type ||
AscCH.historyitem_Worksheet_GroupCol === Type || AscCH.historyitem_Worksheet_CollapsedRow === Type ||
AscCH.historyitem_Worksheet_CollapsedCol === Type || AscCH.historyitem_Worksheet_SetFitToPage === Type) {
AscCH.historyitem_Worksheet_CollapsedCol === Type || AscCH.historyitem_Worksheet_SetFitToPage === Type ||
AscCH.historyitem_Worksheet_SetTopLeftCell === Type) {
Data = Data.CreateReverseChangeSpreadsheet();
} else {
return;
Expand Down Expand Up @@ -3401,7 +3402,8 @@ function (window, undefined) {
} else if (AscCH.historyitem_Worksheet_MoveRange === oActionToUndo.nActionType ||
AscCH.historyitem_Worksheet_ChangeMerge === oActionToUndo.nActionType ||
AscCH.historyitem_Worksheet_ChangeHyperlink === oActionToUndo.nActionType ||
AscCH.historyitem_Worksheet_ChangeFrozenCell === oActionToUndo.nActionType) {
AscCH.historyitem_Worksheet_ChangeFrozenCell === oActionToUndo.nActionType ||
AscCH.historyitem_Worksheet_SetTopLeftCell === oActionToUndo.nActionType) {
res = AscCommonExcel.g_oUndoRedoWorksheet.CommuteRelatedRange(oActionToUndo.oData.from, oActionOther);
res = res && AscCommonExcel.g_oUndoRedoWorksheet.CommuteRelatedRange(oActionToUndo.oData.to, oActionOther);
}
Expand Down Expand Up @@ -4239,6 +4241,9 @@ function (window, undefined) {
};

UndoRedoWoorksheet.prototype.CommuteRelatedCell = function (oData, oActionOther) {
if (!oData) {
return true;
}
let res = this.CommuteRelatedCell2(oData.nRow, oData.nCol, oActionOther);
if (res) {
oData.nRow = this.tmpCell.nRow;
Expand Down Expand Up @@ -4331,6 +4336,9 @@ function (window, undefined) {
return true;
}
UndoRedoWoorksheet.prototype.CommuteRelatedRange = function (oData, oActionOther) {
if (!oData) {
return true;
}
let res = this.CommuteRelatedRange2(oData.r1, oData.c1, oData.r2, oData.c2, oActionOther);
if (res) {
oData.r1 = this.tmpRange.r1;
Expand Down

0 comments on commit 538bec0

Please sign in to comment.