From a415a2e6524522ee155e06ce6042796f683f4d2c Mon Sep 17 00:00:00 2001 From: asundukov Date: Fri, 8 Apr 2022 11:17:42 +0300 Subject: [PATCH] fix: dropCell.update function In the function called execFunctionGroup, the row and col arguments are mixed up in places --- src/controllers/dropCell.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/dropCell.js b/src/controllers/dropCell.js index 769244c..5a5d246 100644 --- a/src/controllers/dropCell.js +++ b/src/controllers/dropCell.js @@ -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]; @@ -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];