You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2008/07/17 09:22:51 UTC

DO NOT REPLY [Bug 45414] New: Exception on setForceFormulaRecalculation with diagram in sheet

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: dev@poi.apache.org
        ReportedBy: roth@hlp.de


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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 45414] Exception on setForceFormulaRecalculation with diagram in sheet

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45414


Nick Burch <ni...@torchbox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Nick Burch <ni...@torchbox.com>  2008-07-18 11:36:25 PST ---
Thanks for this patch. I've committed it to svn, along with a unit test to
verify that everything's working properly (and stays working properly!)


-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org