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

           Summary: Exception on setForceFormulaRecalculation with diagram
                    in sheet
           Product: POI
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=22268)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22268)
patch to fix above bug

Attached is a patch to fix a bug occured, if '_isUncalced'
(setForceFormulaRecalculation) flag is set and the sheet contain a diagram in
POI Version 3.1 Final.

The exception thrown is 'IllegalStateException' with different sizes for
serialized and pre-calculated size. If a diagramm is inside a sheet it
generates another 'BOFRecord' as seen in Sheet line 829. This serialize more
then one 'UncalcedRecord' records, pre-calculation count only one.

The patch extend the if statement to output the 'UncalcedRecord' only once.


-- 
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