diff options
author | PJ Fanning <fanningpj@apache.org> | 2021-08-07 10:32:22 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2021-08-07 10:32:22 +0000 |
commit | 4ad008ef126203ca10b78ea93884eca1c34654f8 (patch) | |
tree | 9d5131aaccf86873dba34523dd4e47b1aa500bf2 /poi | |
parent | 93bba050ac4ff92c7bbe20b7709e73960ec0e558 (diff) | |
download | poi-4ad008ef126203ca10b78ea93884eca1c34654f8.tar.gz poi-4ad008ef126203ca10b78ea93884eca1c34654f8.zip |
fix TextJoin use case that was not handled
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892062 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r-- | poi/src/main/java/org/apache/poi/ss/formula/atp/TextJoinFunction.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/atp/TextJoinFunction.java b/poi/src/main/java/org/apache/poi/ss/formula/atp/TextJoinFunction.java index 1148267b63..5c64fd8bcd 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/atp/TextJoinFunction.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/atp/TextJoinFunction.java @@ -104,9 +104,9 @@ final class TextJoinFunction implements FreeRefFunction { if (eval instanceof AreaEval) { AreaEval ae = (AreaEval)eval; List<ValueEval> list = new ArrayList<>(); - for (int r = 0; r < ae.getHeight(); r++) { - for (int c = 0; c < ae.getWidth(); c++) { - list.add(ae.getRelativeValue(r, c)); + for (int r = ae.getFirstRow(); r <= ae.getLastRow(); r++) { + for (int c = ae.getFirstColumn(); c <= ae.getLastColumn(); c++) { + list.add(OperandResolver.getSingleValue(ae.getAbsoluteValue(r, c), r, c)); } } return list; |