https://bugs.documentfoundation.org/show_bug.cgi?id=90808

Michael Stahl <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
           Assignee|[email protected] |[email protected]
                   |desktop.org                 |

--- Comment #2 from Michael Stahl <[email protected]> ---
The document contains 2 cross-reference bookmarks on the same paragraph:

      <text:h text:style-name="P178" text:outline-level="3">
        <text:bookmark-start text:name="__RefHeading__10798_1597553411"/>
        <text:bookmark-start text:name="__RefHeading___Toc394995642"/>
        <text:soft-page-break/>
        <text:span text:style-name="T29">3</text:span>
        <text:span text:style-name="T26">. <text:s text:c="2"/></text:span>
        <text:span text:style-name="T21">Objectives</text:span>
        <text:bookmark-end text:name="__RefHeading__10798_1597553411"/>
        <text:bookmark-end text:name="__RefHeading___Toc394995642"/>
      </text:h>

the check in 7a12360e1f2c0a5bc0927131a750740d35cfd1ab
should refuse to insert the second duplicate bookmark,
but it does not detect the problem because it uses
the Point, not the Start of the cursor to check,
while the CrossRefBookmark class then discards the Point
and uses the Start.

subsequently this crashes when copying the duplicate bookmarks to
the clipboard, because by then there is no extent anymore.

fixed on master

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to