aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-02-22 09:15:38 +0000
committerPJ Fanning <fanningpj@apache.org>2022-02-22 09:15:38 +0000
commit9d2da7453c7c2395c8099ee6060652543abec916 (patch)
tree2a11f29e87f3f07b207ccbf5a0d1e31aa11746a3
parentf090436eca556665e34db630936e0715939f30b6 (diff)
downloadpoi-9d2da7453c7c2395c8099ee6060652543abec916.tar.gz
poi-9d2da7453c7c2395c8099ee6060652543abec916.zip
get TestIndirectFunctionFromSpreadsheet to pass even though code looks wrong
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898313 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poi/src/main/java/org/apache/poi/ss/formula/OperationEvaluationContext.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/OperationEvaluationContext.java b/poi/src/main/java/org/apache/poi/ss/formula/OperationEvaluationContext.java
index 29157de540..a383fc331d 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/OperationEvaluationContext.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/OperationEvaluationContext.java
@@ -314,15 +314,15 @@ public final class OperationEvaluationContext {
case COLUMN:
firstRow = 0;
lastRow = ssVersion.getLastRowIndex();
- firstCol = parseColRef(refStrPart1);
- lastCol = parseColRef(refStrPart2);
+ firstCol = parseRowRef(refStrPart1);
+ lastCol = parseRowRef(refStrPart2);
break;
case ROW:
// support of cell range in the form of integer:integer
firstCol = 0;
lastCol = ssVersion.getLastColumnIndex();
- firstRow = parseRowRef(refStrPart1);
- lastRow = parseRowRef(refStrPart2);
+ firstRow = parseColRef(refStrPart1);
+ lastRow = parseColRef(refStrPart2);
break;
case CELL:
CellReference cr;