From ecdd4fcb5518da487784cd6c664f4d76029e8d52 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 25 Oct 2021 10:11:04 +0000 Subject: revert github-267 due to broken tests git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894550 13f79535-47bb-0310-9956-ffa450edef68 --- poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'poi-ooxml/src/main/java') diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java index fcdd530be8..a1d33c9600 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java @@ -474,10 +474,7 @@ public final class XSSFCell extends CellBase { if (wb.getCellFormulaValidation()) { XSSFEvaluationWorkbook fpb = XSSFEvaluationWorkbook.create(wb); //validate through the FormulaParser - Ptg[] ptgs = FormulaParser.parse(formula, fpb, formulaType, wb.getSheetIndex(getSheet()), getRowIndex()); - // Make its format consistent with Excel. - // eg: "SUM('Sheet1:Sheet2'!A1:B1)" will be trans to "SUM(Sheet1:Sheet2!A1:B1)" - formula = FormulaRenderer.toFormulaString(fpb, ptgs); + FormulaParser.parse(formula, fpb, formulaType, wb.getSheetIndex(getSheet()), getRowIndex()); } CTCellFormula f; -- cgit v1.2.3