diff options
author | PJ Fanning <fanningpj@apache.org> | 2022-02-22 09:15:38 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2022-02-22 09:15:38 +0000 |
commit | 9d2da7453c7c2395c8099ee6060652543abec916 (patch) | |
tree | 2a11f29e87f3f07b207ccbf5a0d1e31aa11746a3 /poi | |
parent | f090436eca556665e34db630936e0715939f30b6 (diff) | |
download | poi-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
Diffstat (limited to 'poi')
-rw-r--r-- | poi/src/main/java/org/apache/poi/ss/formula/OperationEvaluationContext.java | 8 |
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; |