diff options
author | PJ Fanning <fanningpj@apache.org> | 2021-10-25 10:11:04 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2021-10-25 10:11:04 +0000 |
commit | ecdd4fcb5518da487784cd6c664f4d76029e8d52 (patch) | |
tree | f18036445917c2a175f4b195b26fb4732d4b7340 /poi-ooxml/src/main/java | |
parent | 6017327bae3201a96cdbcdc1d809453e9dba8182 (diff) | |
download | poi-ecdd4fcb5518da487784cd6c664f4d76029e8d52.tar.gz poi-ecdd4fcb5518da487784cd6c664f4d76029e8d52.zip |
revert github-267 due to broken tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894550 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml/src/main/java')
-rw-r--r-- | poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java | 5 |
1 files changed, 1 insertions, 4 deletions
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; |