-
1. Re: Chaning the bookmarks root with PDBookmark api
lrosenth Feb 14, 2010 6:50 AM (in response to Doron Ori Tal)I would create a completely new Outline tree and then put that into the Catalog instead - that way you don't have to worry about the tree becoming inconsistent while you are modifying it in place (which, I suspect, is what is happening).
-
2. Re: Chaning the bookmarks root with PDBookmark api
Doron Ori Tal Feb 14, 2010 6:58 AM (in response to lrosenth)But in that case I would have to copy all bookmark data, including: title, color, action, and flags... really annoying...
Is there any other way to bypass the bug?
Many thanks,
D.
-
3. Re: Chaning the bookmarks root with PDBookmark api
lrosenth Feb 14, 2010 7:05 AM (in response to Doron Ori Tal)If you are writing a plugin (which it appears that you are), then you only need to work at Cos object level to restructure the tree pointers. No need to copy ANYTHING. It's just a linked list that you are "sorting" - thinks standard Computer Science theory.
No bug here - I suspect that your code isn't considering the standard issues around linked list reordering (see comment above).


