Andre Poenitz wrote:
Which reminds me: Storing Par(Const)Iterators is _not_ safe. They are meant to iterate over a non-changing document, nothing else.
In this case, it is safe because we update the list for each paragaph or inset creation or deletion thanks to the updateLabels()/addToToc() mechanism. I am not saying there's no better way but this is the only one I came up with.
Abdel.