]> source.dussan.org Git - poi.git/commitdiff
mark GutsRecord as terminating row blocks, prevent exception when reading workbooks...
authorYegor Kozlov <yegor@apache.org>
Sat, 11 Dec 2010 13:48:18 +0000 (13:48 +0000)
committerYegor Kozlov <yegor@apache.org>
Sat, 11 Dec 2010 13:48:18 +0000 (13:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1044655 13f79535-47bb-0310-9956-ffa450edef68

src/documentation/content/xdocs/status.xml
src/java/org/apache/poi/hssf/model/RecordOrderer.java
src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
test-data/spreadsheet/50426.xls [new file with mode: 0644]

index a5e46704094385107eccd21580cadc1abe76b957..fe9ac0bd468caee46a61dc411417f1496dc241bb 100644 (file)
@@ -34,6 +34,7 @@
 
     <changes>
         <release version="3.8-beta1" date="2010-??-??">
+           <action dev="POI-DEVELOPERS" type="fix">50246 - Properly position GutsRecord when reading HSSF workbooks</action>
            <action dev="POI-DEVELOPERS" type="add">48539 - Added implementation for MROUND(), VAR() and VARP()</action>
            <action dev="POI-DEVELOPERS" type="add">50446 - Code cleanup and optimizations to keep some IDE quiet</action>
            <action dev="POI-DEVELOPERS" type="add">50437 - Support passing ranges to NPV()</action>
index b7d942e5dcad1b0156a197129b003ae22bcda2f9..764d5a5110c0e356c3668db6bd9aa91ebbfae1e0 100644 (file)
@@ -417,6 +417,7 @@ final class RecordOrderer {
                        case ObjRecord.sid:
                        case TextObjectRecord.sid:
 
+            case GutsRecord.sid:   // see Bugzilla 50426
                        case WindowOneRecord.sid:
                                // should really be part of workbook stream, but some apps seem to put this before WINDOW2
                        case WindowTwoRecord.sid:
index 288479ac68cb2dd375daeedf27df8e0767384e86..cb7cdbd1f693bd658e7277772fd73e0f6df7831d 100644 (file)
@@ -1894,4 +1894,9 @@ if(1==2) {
        HSSFWorkbook wb = openSample("50020.xls");
        writeOutAndReadBack(wb);
     }
+
+    public void test50426() throws Exception {
+       HSSFWorkbook wb = openSample("50426.xls");
+       writeOutAndReadBack(wb);
+    }
 }
diff --git a/test-data/spreadsheet/50426.xls b/test-data/spreadsheet/50426.xls
new file mode 100644 (file)
index 0000000..1a807f8
Binary files /dev/null and b/test-data/spreadsheet/50426.xls differ