From dcb8253eb374d129e5cbefcb5186c883761f579a Mon Sep 17 00:00:00 2001 From: "Andrew C. Oliver" Date: Sun, 28 Apr 2002 22:31:55 +0000 Subject: [PATCH] Handles reading other forms of Reference PTG git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352547 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/record/formula/Ptg.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/java/org/apache/poi/hssf/record/formula/Ptg.java b/src/java/org/apache/poi/hssf/record/formula/Ptg.java index b7854e80a0..2db64a303d 100644 --- a/src/java/org/apache/poi/hssf/record/formula/Ptg.java +++ b/src/java/org/apache/poi/hssf/record/formula/Ptg.java @@ -162,6 +162,11 @@ public abstract class Ptg byte id = data[ offset + 0 ]; Ptg retval = null; + final int valueRef = ReferencePtg.sid + 0x20; //note this only matters for READ + final int arrayRef = ReferencePtg.sid + 0x40; // excel doesn't really care which one you + // write. + + switch (id) { @@ -209,6 +214,14 @@ public abstract class Ptg case ReferencePtg.sid : retval = new ReferencePtg(data, offset); break; + + case valueRef : + retval = new ReferencePtg(data, offset); + break; + + case arrayRef : + retval = new ReferencePtg(data, offset); + break; case ParenthesisPtg.sid : retval = new ParenthesisPtg(data, offset); -- 2.39.5