View | Details | Raw Unified | Return to bug 13219
Collapse All | Expand All

(-)src/java/org/apache/poi/hssf/model/Workbook.java (+2 lines)
Lines 1848-1853 Link Here
1848
     * @see org.apache.poi.hssf.record.Record
1848
     * @see org.apache.poi.hssf.record.Record
1849
     */
1849
     */
1850
    public short createFormat(String format) {
1850
    public short createFormat(String format) {
1851
	++xfpos;	//These are to ensure that positions are updated properly
1852
       ++bspos;
1851
	FormatRecord rec = new FormatRecord();
1853
	FormatRecord rec = new FormatRecord();
1852
	maxformatid = maxformatid >= (short)0xa4 ? (short)(maxformatid + 1) : (short)0xa4; //Starting value from M$ empiracle study.
1854
	maxformatid = maxformatid >= (short)0xa4 ? (short)(maxformatid + 1) : (short)0xa4; //Starting value from M$ empiracle study.
1853
	rec.setIndexCode(maxformatid);
1855
	rec.setIndexCode(maxformatid);

Return to bug 13219