aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-11-28 14:30:15 +0000
committerPJ Fanning <fanningpj@apache.org>2022-11-28 14:30:15 +0000
commit185020b538c6a96af973ba70ee85ecda20c41da7 (patch)
treef76353aec56fce13cf4b6828fdd0eb9354e9b702 /poi-ooxml
parent4b911496ebce2cf1729ed33a10dbb459b3704fb6 (diff)
downloadpoi-185020b538c6a96af973ba70ee85ecda20c41da7.tar.gz
poi-185020b538c6a96af973ba70ee85ecda20c41da7.zip
possible issue when streaming xssf cells with formulas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905575 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml')
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java
index d6b66c9578..14b5046593 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java
@@ -215,9 +215,7 @@ public class XSSFSheetXMLHandler extends DefaultHandler {
formula.setLength(0);
// Mark us as being a formula if not already
- if(nextDataType == xssfDataType.NUMBER) {
- nextDataType = xssfDataType.FORMULA;
- }
+ nextDataType = xssfDataType.FORMULA;
// Decide where to get the formula string from
String type = attributes.getValue("t");