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 2019/09/30 13:02:13 UTC

[Bug 63788] New: XWPFNumbering.removeAbstractNum removes by list index, not abstractNumId

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

            Bug ID: 63788
           Summary: XWPFNumbering.removeAbstractNum removes by list index,
                    not abstractNumId
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XWPF
          Assignee: dev@poi.apache.org
          Reporter: patrick@hislop.us
  Target Milestone: ---

Created attachment 36804
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36804&action=edit
A demonstration of the described bug

The XWPFNumbering.removeAbstractNum method removes by list index, while the
documentation indicates that it removes by abstractNumId. The class does not
ensure that the two are the same.
Demonstration file attached.

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


[Bug 63788] XWPFNumbering.removeAbstractNum removes by list index, not abstractNumId

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

Dominik Stadler <do...@gmx.at> changed:

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

--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
Fixed via r1872187, the method now iterates over the available numbers and
removes the first one where the abstractNumId matches. 

Thanks for the report.

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