https://bz.apache.org/bugzilla/show_bug.cgi?id=66520

            Bug ID: 66520
           Summary: Adding new series corrupting Word document
           Product: POI
           Version: 5.2.3-FINAL
          Hardware: Macintosh
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XDDF
          Assignee: dev@poi.apache.org
          Reporter: david.blackb...@kurtosys.com
  Target Milestone: ---

I have a Word document with a simple line chart containing 3 series. If I try
to update the document programatically by adding a 4th series then the
generated Word document is corrupted.

The problem is that the new series is being generated with an idx and order of
1 when the values should be 3.

The problem was traced to the addSeries function in the XDDFLineChartData
class, specifically the line

final long index = this.parent.incrementSeriesCount();

This variable is the count of chart data objects, not the series count of a
chart data object.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to