Summary: | [PATCH] Unknown Ptg 3c (60) | ||
---|---|---|---|
Product: | POI | Reporter: | Todd McGrath <mcgrath> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ash_sha_21, patrick.luby |
Priority: | P3 | ||
Version: | 2.0-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: |
test spreadsheet
recreate code Another file that causes this bug. Patch that adds support for Ptgs 0x3c and 0x3d Revised patch that adds support for Ptgs 0x3c and 0x3d New DeletedArea3DPtg class. Put this in the src/java/org/apache/poi/hssf/record/formula directory before building. New DeletedRef3DPtg class. Put this in the src/java/org/apache/poi/hssf/record/formula directory before building. |
Description
Todd McGrath
2004-02-26 22:31:56 UTC
Created attachment 10576 [details]
test spreadsheet
Created attachment 10577 [details]
recreate code
*** Bug 32258 has been marked as a duplicate of this bug. *** Created attachment 14853 [details]
Another file that causes this bug.
This is just another spread sheet that causes this error.. hope it helps.
Created attachment 15052 [details]
Patch that adds support for Ptgs 0x3c and 0x3d
I ran into this same bug for Ptgs 0x3c and 0x3d. Looking at the Excel filtering code in OpenOffice.org, I found that these Ptgs are processed identically to Ptgs 0x3a and 0x3b, respectively. Attached is a "cvs diff -u" patch to the CVS trunk that adds support for these two Ptgs to POI. I don't have commit access to POI so can one of the POI committers review my patch and note if there are any issues? Patrick, thanks for this, but you will have to attach the DeletedArea3DPtg.java and the DeletedRef3DPtg.java... they are not in the diff. Also, can you pls get rid of the diff in forrest.properties (cvs diff -u src/) thanks again, this is very useful. Created attachment 15058 [details]
Revised patch that adds support for Ptgs 0x3c and 0x3d
This revised patch removes the forrest.properties diff and the garbage lines at
the beginning of the last patch.
Created attachment 15059 [details]
New DeletedArea3DPtg class. Put this in the src/java/org/apache/poi/hssf/record/formula directory before building.
Created attachment 15060 [details]
New DeletedRef3DPtg class. Put this in the src/java/org/apache/poi/hssf/record/formula directory before building.
Sorry about the first patch file and the missing new files. I have attached the following items to form a complete patch: Patch file: http://issues.apache.org/bugzilla/attachment.cgi?id=15058 New file: http://issues.apache.org/bugzilla/attachment.cgi?id=15059 New file: http://issues.apache.org/bugzilla/attachment.cgi?id=15060 Committed. Thanks Patrick! Please verify. Note a minor change to the semantics of HSSFName.getReference(): Earlier, if we couldnt parse a ptg, we returned '#REF!'. Now we return '#REF!' if its DeletedArea or DeletedRef Ptgs, which is more correct. If we cant parse the ptg, we return 'Error' I did a clean checkout and build and I verified that the committed files work. not sure why someone changed the title to "opc data" |