Bookmark text visible if inserted on a table

  • If the WPRichText begins with a table and a bookmark is added, the bookmark text added with InputString is visible in the first cell. If the first paragraph is NOT a table, it stays hidden (Yes, BookmarkTextAttr.Hidden is true)

    Code used to add the bookmark:

    Code
    with wp do
      begin
        CPPosition := 0;
        BookmarkInput( '_Toc_' + 'test', true );
        ActiveParagraph.ASet(WPAT_ParIsOutline,2);
        InputString( 'Added bookmark' );
      end;

    WPTools 5.20.6
    Delphi 7

    I emailed you an example program.

    New info:
    1. Noticed the bookmark is not even added if trying to add to a table at CPPosition = 0
    2. Issueing a few CPMoveNext's and then adding the bookmark works