From eac931458149b7d7bc1d711766cbcc4ca19a7ed5 Mon Sep 17 00:00:00 2001 From: "Andrew C. Oliver" Date: Sat, 19 Jul 2003 14:56:36 +0000 Subject: [PATCH] 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 --- src/java/org/apache/poi/hssf/record/SharedFormulaRecord.java | 2 +- .../poi/hssf/record/aggregates/ValueRecordsAggregate.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/hssf/record/SharedFormulaRecord.java b/src/java/org/apache/poi/hssf/record/SharedFormulaRecord.java index eb4482369..7acc5a677 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 3afdbfec5..89591682a 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()) {