|Summary:||[PATCH] XWPFParagraph insertNewRun and removeRun work incorrectly for runs after hyperlink/field runs..|
|Product:||POI||Reporter:||Mark Bortolazzo <mb_apache>|
|Component:||XWPF||Assignee:||POI Developers List <dev>|
Description Mark Bortolazzo 2015-11-16 23:41:04 UTC
When XWPFParagraph is created any runs in Hyperlinks and Fields are added into the runs/iruns lists. When these runs are removed/inserted the index on the base base R list is different to the index on the runs/iruns list. This means runs after a hyperlink/field run can't be manipulated properly. We need to calculate the correct position in the R list based on the run list which contains R runs plus hyperlink/field runs.