At some time where DEPM was causing issues, there was the idea of registering 
cursors with their buffer. This would allow to keep track of what is happening.

Another possibility would be to register insets, so that one can know when 
cursor.inset() is not valid anymore.
Or to turn this method into some slower thing that reads the structures to find 
the inset.

JMarc

Le 30 décembre 2016 18:15:07 GMT+01:00, Guillaume Munch <g...@lyx.org> a écrit :
>Thanks for the patch. It is the same as calling fixIfBroken in
>GuiView::structureChanged (as attached) which I agree becomes even
>simpler. But, provided one accepts the idea that DocIterators hold
>perishable pointers that need to be fixed (I do not see any way out of
>it), I find it better to fix them the moment we know that they are
>broken. However, I still miss how and when all the cursors not
>connected
>to the GuiView are being fixed, though. Any idea?

Reply via email to