In a OnGetAttrColor even, I am using the following command:
OpenCodes(par, lin, cp, TheList, wpcoBookMark);
To check whether I should highlight a bookmark. However, the bookmarks I get in the returned list, includes bookmarks that have been closed several paragraphs before.
How can I get around what appears to be a bug in this function?