From: Andrew C. Oliver Date: Sat, 19 Jul 2003 14:56:36 +0000 (+0000) Subject: shared formula ***pre-support*** doesn't work yet X-Git-Tag: PERF_BEFORE_MERGE~251 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a4dcbdc3a8563065c2616da8cdc92ec69a2cba3e;p=poi.git shared formula ***pre-support*** doesn't work yet PR: Obtained from: Submitted by: Reviewed by: CVS: ---------------------------------------------------------------------- CVS: PR: CVS: If this change addresses a PR in the problem report tracking CVS: database, then enter the PR number(s) here. CVS: Obtained from: CVS: If this change has been taken from another system, such as NCSA, CVS: then name the system in this line, otherwise delete it. CVS: Submitted by: CVS: If this code has been contributed to Apache by someone else; i.e., CVS: they sent us a patch or a new module, then include their name/email CVS: address here. If this is your work then delete this line. CVS: Reviewed by: CVS: If we are doing pre-commit code reviews and someone else has CVS: reviewed your changes, include their name(s) here. CVS: If you have not had it reviewed then delete this line. git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353223 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/record/SharedFormulaRecord.java b/src/java/org/apache/poi/hssf/record/SharedFormulaRecord.java index eb4482369a..7acc5a6772 100755 --- a/src/java/org/apache/poi/hssf/record/SharedFormulaRecord.java +++ b/src/java/org/apache/poi/hssf/record/SharedFormulaRecord.java @@ -70,7 +70,7 @@ import org.apache.poi.util.LittleEndian; */ public class SharedFormulaRecord - extends Record + extends Record { public final static short sid = 0x4BC; private short size = 0; diff --git a/src/java/org/apache/poi/hssf/record/aggregates/ValueRecordsAggregate.java b/src/java/org/apache/poi/hssf/record/aggregates/ValueRecordsAggregate.java index 3afdbfec52..89591682ac 100644 --- a/src/java/org/apache/poi/hssf/record/aggregates/ValueRecordsAggregate.java +++ b/src/java/org/apache/poi/hssf/record/aggregates/ValueRecordsAggregate.java @@ -170,6 +170,9 @@ public class ValueRecordsAggregate else if (rec instanceof StringRecord) { lastFormulaAggregate.setStringRecord((StringRecord)rec); + } + else if (rec instanceof SharedFormulaRecord) { + lastFormulaAggregate.setSharedFormulaRecord((SharedFormulaRecord)rec); } else if (rec.isValue()) {