/[Apache-SVN]
ViewVC logotype

Revision 1886963


Jump to revision: Previous Next
Author: mariusvolkhart
Date: Sat Feb 27 00:43:56 2021 UTC (3 years, 8 months ago)
Changed paths: 3
Log Message:
Fix bug with record indexes for HSSF Workbooks

We have encountered workbooks that do not have a TabIdRecord (see 55982.xls). However, the WorkbookRecordList#updateRecordPos() method would still increment the position of the TabIdRecord for such workbooks. Changing the default position of the record from 0 to -1 indicates that the record position has now been set.

This bug was discovered while adding support for editing pictures in HSSF documents.

Changed paths

Path Details
Directorypoi/trunk/src/java/org/apache/poi/hssf/model/InternalWorkbook.java modified , text changed
Directorypoi/trunk/src/java/org/apache/poi/hssf/model/WorkbookRecordList.java modified , text changed
Directorypoi/trunk/src/testcases/org/apache/poi/hssf/model/TestWorkbookRecordList.java added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26