Bug 158841 - Numbering and level of chapter headings is wrong in ODM master document
Summary: Numbering and level of chapter headings is wrong in ODM master document
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Heading-Numbering Writer-Master-Doc
  Show dependency treegraph
 
Reported: 2023-12-23 16:10 UTC by frantav
Modified: 2024-04-02 02:52 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
VyvodMasterAll.odm (3.80 MB, application/x-zip-compressed)
2024-01-27 13:28 UTC, frantav
Details

Note You need to log in before you can comment on or make changes to this bug.
Description frantav 2023-12-23 16:10:48 UTC
Description:
The numbering of the chapters in the table of contents, where it is correct, and in the text, where it is incorrect, do not match. The document is generated from the master document (.odm).

For example after export to pdf: https://drive.google.com/file/d/1a5h55aKlWwXgDj695CsvWch6qNcTrOkw/view?usp=sharing

Thank You
Frantisek vil9m

Steps to Reproduce:
1. Open .odm
2. Export to pdf

Actual Results:
For example after export to pdf: https://drive.google.com/file/d/1a5h55aKlWwXgDj695CsvWch6qNcTrOkw/view?

Expected Results:
I expect correct chapter numbering.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: cs-CZ (cs_CZ); UI: cs-CZ
Calc: threaded
Comment 1 m_a_riosv 2023-12-23 16:38:38 UTC
Please attach sample files.
Comment 2 frantav 2023-12-26 13:56:27 UTC
Sample file: VyvodMasterAll.odm

https://drive.google.com/file/d/18eCb2srDlKgba59Kvnwg8EOUFsvdTno8/view?usp=sharing
Comment 3 QA Administrators 2023-12-27 03:10:03 UTC Comment hidden (obsolete)
Comment 4 m_a_riosv 2023-12-28 00:52:30 UTC
There is one file missing:
Rodice a prarodice Václava Vilima a jeho sestry...

In any case, please try with Menu/Tools/Update — All

Maybe the faulty file is the source of the issue.

And, which are the difference, let us know at least one.
Comment 5 frantav 2023-12-28 07:33:42 UTC
Sorry, I got the content wrong too (e.g. 1, 2, 3, 5)
I tried to generate the document from what I sent and I did not encounter the problem with the chapter "Vaclav Vilim and his ..." The wrongly numbered chapter is already 5 "Rodice a prarodice Frantiska Vilima"
Comment 6 QA Administrators 2023-12-29 03:12:13 UTC Comment hidden (obsolete)
Comment 7 Stéphane Guillou (stragu) 2024-01-10 23:20:12 UTC
Thanks for the report.
Are you able to provide a smaller sample file that has the same issue?
A 1.7 GB archive makes it difficult for us to test and pinpoint the issue.
Can you also please be more explicit with the steps, what is expected and what you see instead?
Comment 8 frantav 2024-01-27 13:28:26 UTC
Created attachment 192190 [details]
VyvodMasterAll.odm
Comment 9 QA Administrators 2024-01-28 03:14:22 UTC Comment hidden (obsolete)
Comment 10 Stéphane Guillou (stragu) 2024-01-28 04:33:56 UTC
Thank you.
Reproduced.

Steps:
1. Unpack attachment 192190 [details]
2. Open VyvodMasterAll.odm, click "Yes" when prompted to update all links
3. Go to page 28 and look at heading number 5 and what is underneath.
4. Compare with source files for this section: OtecFrantisek.odt (contains heading levels 1 and 2) and MaminkaBohuslava.odt (contains only level 2)

Result: wrong heading levels and numbering:
5 Moje a sestry rodiče a prarodiče
6 František Vilím nar. 1939
6.1 Bohuslava roz. Bendová nar. 1942

Expected result: according to the source files, it should be:
5 Moje a sestry rodiče a prarodiče
5.1 František Vilím nar. 1939
5.2 Bohuslava roz. Bendová nar. 1942
etc.

Regression, as not reproduced in:

Version: 7.3.7.2 / LibreOffice Community
Build ID: e114eadc50a9ff8d8c8a0567d6da8f454beeb84f
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Reproduced in:

Version: 7.4.7.2 / LibreOffice Community
Build ID: 723314e595e8007d3cf785c16538505a1c878ca5
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2cedb1a19ad605df4e148589e9027512e4dd9265
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 11 raal 2024-01-28 08:08:05 UTC
Bibisect focused on numbering:
5 Moje a sestry rodiče a prarodiče
6 František Vilím nar. 1939
6.1 Bohuslava roz. Bendová nar. 1942


This seems to have begun at the below commit in bibisect repository/OS linux-64-7.4.
Adding Cc: to Michael Stahl ; Could you possibly take a look at this one?
Thanks
 9e277b0ebf08f2ef718d3288b7921a2d8be6b24f is the first bad commit
commit 9e277b0ebf08f2ef718d3288b7921a2d8be6b24f
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Fri Jun 17 09:58:32 2022 +0200

    source cdf48e57da6b8a6a5eb4131340fa2c14be135714

136015: tdf#134759 sw: clear items in SwAttrSet::CopyToModify() | https://gerrit.libreoffice.org/c/core/+/136015
Comment 12 frantav 2024-03-29 17:17:27 UTC
The problem still remains, the table of contents has the chapter numbers correctly, but the chapter headings do not. Do I have a build https://git.libreoffice.org/core/+log/d56cc158d8a96260b836f100ef4b4ef25d6f1a01