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

            Bug ID: 66080
           Summary: [PATCH] XWPFNumbering.addAbstractNum uses abstract
                    numberings count as id
           Product: POI
           Version: 5.2.0-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XWPF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 38295
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38295&action=edit
fix adding id for new abstract numberings in XWPFNumbering.addAbstractNum

Method addAbstractNum(XWPFAbstractNum abstractNum) adds new numbering with id =
abstractNums.size(). But there can be a document, where numbering with this id
already exists. 
In the attached patch (git patch file), I added method that finds an id that is
not yet used in nmberings, and test that checks that all abstract numberings in
resulted document have unique ids.

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