This code samples were taken from source of library. So I'll create bugs in bugzilla and will attach my patches.
As for insertNewRun it acts a little bit better. On XWPF level it inserts Run in the of the list and doesn't take position parameter in account. I'll send patch as well. -- Best Regards, Dmitry Kochelaev On Sun, Apr 24, 2011 at 5:39 PM, Nick Burch <[email protected]> wrote: > On Sun, 24 Apr 2011, Dmitry Kochelaev wrote: > >> I'm facing following issue: if I apply any change to children list (e.g. >> list of XWPFRun for XWPFParagraph) I'm the list is not refreshed, yet the >> changes are applied. For Instance: >> > > You need to make your changes at the XWPF level. If you change the > underlying CT objects, then you'll see the problem you've got of the XWPF > code not being aware of the underlying changes > > > then I add a new run at the end: >> par.createRun(); >> par.getRuns.size(); //returns 3, however 4 is expected. >> > > That ought to add it in. Can you open a new bug in bugzilla if it isn't? > Also, does insertRun behave properly? > > Nick > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
