When exactly is this updateLabels called?Each time a paragraph is created/deleted/merged/split.
Hmm. This could be used maybe to trigger the Buffer::updateMacros call to update the paragraph numbers. But otherwise, don't see a way to get rid of the const_cast with that. The more I think about all this the more I think of the spitting/ eating as something which belongs into the metrics pass because it is essentially about the rendering on screen. Too bad we need this hack to make it not const anymore.
Stefan
PGP.sig
Description: Signierter Teil der Nachricht