Browse Source

fix: dropCell.update function

In the function called execFunctionGroup, the row and col arguments are mixed up in places
master
asundukov 3 years ago
parent
commit
a415a2e652
  1. 4
      src/controllers/dropCell.js

4
src/controllers/dropCell.js

@ -485,7 +485,7 @@ const luckysheetDropCell = {
let f = "=" + formula.functionCopy(cell.f, "down", j - apply_str_r + 1); let f = "=" + formula.functionCopy(cell.f, "down", j - apply_str_r + 1);
let v = formula.execfunction(f, j, i); 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.f = v[2];
cell.v = v[1]; cell.v = v[1];
@ -581,7 +581,7 @@ const luckysheetDropCell = {
let f = "=" + formula.functionCopy(cell.f, "up", apply_end_r - j + 1); let f = "=" + formula.functionCopy(cell.f, "up", apply_end_r - j + 1);
let v = formula.execfunction(f, j, i); 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.f = v[2];
cell.v = v[1]; cell.v = v[1];

Loading…
Cancel
Save