|Summary:||wb.getNumCellStyles() incorrect compared to wb.getCellStyleAt()|
|Product:||POI||Reporter:||Antti Koskimäki <antti.koskimaki>|
|Component:||XSSF||Assignee:||POI Developers List <dev>|
|Attachments:||patch for StylesTable to return size of correct (?) list|
Description Antti Koskimäki 2010-08-04 03:46:28 UTC
Created attachment 25840 [details] patch for StylesTable to return size of correct (?) list XSSFWorkbook implementation of wb.getNumCellStyles returns incorrect value, usually just "1", while wb.getCellStyleAt() still finds all the styles (...before IndexOutOfBounds hits :) I inspected the code, and finally patched StylesTable to return size of different list, as shown in attached patch. Seems to work, although I would suggest that someone more familiar with XSSF internals checks through the code. I got quite confused about styleXfs vs. xfs...