From 185020b538c6a96af973ba70ee85ecda20c41da7 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 28 Nov 2022 14:30:15 +0000 Subject: 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 --- .../java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'poi-ooxml') 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"); -- cgit v1.2.3