https://issues.apache.org/bugzilla/show_bug.cgi?id=49702

           Summary: wb.getNumCellStyles() incorrect compared to
                    wb.getCellStyleAt()
           Product: POI
           Version: 3.7-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=25840)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25840)
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...

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to