Bug 63788

Summary: XWPFNumbering.removeAbstractNum removes by list index, not abstractNumId
Product: POI Reporter: patrick
Component: XWPFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: A demonstration of the described bug

Description patrick 2019-09-30 13:02:13 UTC
Created attachment 36804 [details]
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.
Comment 1 Dominik Stadler 2020-01-01 19:23:21 UTC
Fixed via r1872187, the method now iterates over the available numbers and removes the first one where the abstractNumId matches. 

Thanks for the report.