I've rewritten that routine a bit to always (well, except in the cases of UR_DELETED and UR_NEW) do both a remove and an add, and removed the medium-big hammer (UpdateAllItems()) at the end.
Seems to work for me, but then the last one did too, so if you could test it a bit that would be great.
@JP, OK, so definitely the RTree.
I've rewritten that routine a bit to always (well, except in the cases of UR_DELETED and UR_NEW) do both a remove and an add, and removed the medium-big hammer (UpdateAllItems()) at the end.
Seems to work for me, but then the last one did too, so if you could test it a bit that would be great.