Avoid IllegalStateException when creating Data validation in sheet with macro, see Bugzilla 50020
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1004143 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
80c999025c
commit
01e3d56cdd
@ -34,6 +34,7 @@
|
||||
|
||||
<changes>
|
||||
<release version="3.7-beta4" date="2010-??-??">
|
||||
<action dev="poi-developers" type="fix">50020 - Avoid IllegalStateException when creating Data validation in sheet with macro</action>
|
||||
<action dev="poi-developers" type="fix">50033 - Improved rounding in MOD</action>
|
||||
<action dev="poi-developers" type="add">Generate SHA1 hashes of distribution files, alongside existing MD5 ones</action>
|
||||
</release>
|
||||
|
@ -333,6 +333,8 @@ final class RecordOrderer {
|
||||
// ConditionalFormattingTable
|
||||
case HyperlinkRecord.sid:
|
||||
case UnknownRecord.QUICKTIP_0800:
|
||||
// name of a VBA module
|
||||
case UnknownRecord.CODENAME_1BA:
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -57,6 +57,7 @@ public final class UnknownRecord extends StandardRecord {
|
||||
public static final int SHEETEXT_0862 = 0x0862; // OOO calls this SHEETLAYOUT
|
||||
public static final int SHEETPROTECTION_0867 = 0x0867;
|
||||
public static final int HEADER_FOOTER_089C = 0x089C;
|
||||
public static final int CODENAME_1BA = 0x01BA;
|
||||
|
||||
private int _sid;
|
||||
private byte[] _rawData;
|
||||
|
@ -1886,4 +1886,12 @@ if(1==2) {
|
||||
"BlahBlah blah blah ", f.getCenter()
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* IllegalStateException received when creating Data validation in sheet with macro
|
||||
*/
|
||||
public void test50020() throws Exception {
|
||||
HSSFWorkbook wb = openSample("50020.xls");
|
||||
writeOutAndReadBack(wb);
|
||||
}
|
||||
}
|
||||
|
BIN
test-data/spreadsheet/50020.xls
Normal file
BIN
test-data/spreadsheet/50020.xls
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user