]> source.dussan.org Git - poi.git/commitdiff
shared formula ***pre-support*** doesn't work yet
authorAndrew C. Oliver <acoliver@apache.org>
Sat, 19 Jul 2003 14:56:36 +0000 (14:56 +0000)
committerAndrew C. Oliver <acoliver@apache.org>
Sat, 19 Jul 2003 14:56:36 +0000 (14:56 +0000)
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
src/java/org/apache/poi/hssf/record/aggregates/ValueRecordsAggregate.java

index eb4482369a09bfed46284f1c0bcfe7ac4e5475c1..7acc5a6772a1819356ed97dd44e669c8cf7d59e4 100755 (executable)
@@ -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;
index 3afdbfec5297d076c5d6e018829c12e93847c153..89591682acfec824846dc5836ab9000db923255b 100644 (file)
@@ -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())
             {