Skip to content

Commit

Permalink
fix: dropCell.update function
Browse files Browse the repository at this point in the history
In the function called execFunctionGroup, the row and col arguments are mixed up in places
  • Loading branch information
alsundukov committed Apr 8, 2022
1 parent 59aa5e6 commit a415a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/dropCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ const luckysheetDropCell = {
let f = "=" + formula.functionCopy(cell.f, "down", j - apply_str_r + 1);
let v = formula.execfunction(f, j, i);

formula.execFunctionGroup(i, j, v[1], undefined, d);
formula.execFunctionGroup(j, i, v[1], undefined, d);

cell.f = v[2];
cell.v = v[1];
Expand Down Expand Up @@ -581,7 +581,7 @@ const luckysheetDropCell = {
let f = "=" + formula.functionCopy(cell.f, "up", apply_end_r - j + 1);
let v = formula.execfunction(f, j, i);

formula.execFunctionGroup(i, j, v[1], undefined, d);
formula.execFunctionGroup(j, i, v[1], undefined, d);

cell.f = v[2];
cell.v = v[1];
Expand Down

0 comments on commit a415a2e

Please sign in to comment.