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
This commit is contained in:
parent
d0c85667da
commit
7bd031a16b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user