From 9d2da7453c7c2395c8099ee6060652543abec916 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Tue, 22 Feb 2022 09:15:38 +0000 Subject: [PATCH] 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 --- .../apache/poi/ss/formula/OperationEvaluationContext.java | 8 ++++---- 1 file 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;