Bug 136597 - ODF Export: Bookmark order broken when bookmarks start on same position
Summary: ODF Export: Bookmark order broken when bookmarks start on same position
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Bookmarks
  Show dependency treegraph
 
Reported: 2020-09-09 09:56 UTC by Samuel Mehrbrodt (allotropia)
Modified: 2021-03-31 08:23 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Bugdoc (16.20 KB, application/vnd.oasis.opendocument.text)
2020-09-09 09:56 UTC, Samuel Mehrbrodt (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Mehrbrodt (allotropia) 2020-09-09 09:56:09 UTC
Created attachment 165309 [details]
Bugdoc

Open attached bugdoc.
Save as new file.

Compare content.xml.

Expected:
Bookmarks are in this order:
<text:bookmark-start text:name="WM(CMD 'setGroups' GROUPS 'Tag_Zeitraum')"/>
<text:bookmark-start text:name="WM(CMD 'insertFormValue' ID 'Datum') "/>

Actual:
Bookmarks get reordered:
<text:bookmark-start text:name="WM(CMD 'insertFormValue' ID 'Datum') "/>
<text:bookmark-start text:name="WM(CMD 'setGroups' GROUPS 'Tag_Zeitraum')"/>

Broken since https://cgit.freedesktop.org/libreoffice/core/commit/?id=cb46aaf2d7240dfe3ac080fe086a9f70c4c91ab5
Comment 1 Samuel Mehrbrodt (allotropia) 2020-09-24 12:18:49 UTC
This is a start, although I will not continue here:
https://gerrit.libreoffice.org/c/core/+/102362
https://gerrit.libreoffice.org/c/core/+/102363
Comment 2 Dieter 2021-03-31 08:23:37 UTC
I confirm it

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: f96004096268f5e71120678e32fc8c74055819aa
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL