Bug 150752 - LO Write 7.3.3.1 outline numbering in master document gives offset in chapter numbering in level 1
Summary: LO Write 7.3.3.1 outline numbering in master document gives offset in chapter...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.3.2 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: 2022-09-02 09:21 UTC by Jan Bart
Modified: 2023-12-21 13:46 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
chapter numbering setup with various styles (20.87 KB, image/png)
2022-09-02 09:24 UTC, Jan Bart
Details
chapter numbering result ok in LO 7.3.2.2 (13.14 KB, image/png)
2022-09-02 09:25 UTC, Jan Bart
Details
chapter numbering result not ok in LO 7.3.3.1 (13.08 KB, image/png)
2022-09-02 09:25 UTC, Jan Bart
Details
master documents and relevant subdocuments and results in pdf (1.18 MB, application/x-7z-compressed)
2022-09-19 06:58 UTC, Jan Bart
Details
LO 7.5.0.2 - about (116.92 KB, image/png)
2023-01-27 12:29 UTC, Jan Bart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Bart 2022-09-02 09:21:48 UTC
Description:
master document with lots of sub documents, outline numbering is set to include different styles.
updating the document gives an offset (starts at 2) in the first chapter level in LO 7.3.3.1
the offset also occurs in 7.3.3.2, 7.3.6.1 and 7.4.1.2.
updating the document gives no offset (starts at 1) in the first chapter level in LO 7.3.2.2.


Steps to Reproduce:
1.open master document in 7.3.2.2
2.update all = ok
3.open same master document in 7.3.3.1 (and higher versions)
4.update all = not ok

Actual Results:
in 7.3.2.2 chapter numbering = Part I
in 7.3.3.1 chapter numbering = Part II

Expected Results:
in 7.3.2.2 chapter numbering = Part I
in 7.3.3.1 chapter numbering = Part I


Reproducible: Always


User Profile Reset: No



Additional Info:
I installed parallel versions of LO using Separate Install GUI v5.0.0.9
user profiles are fresh every time.
tested versions:
7.1.4.2	ok
7.2.7.2	ok
7.3.0.1	ok
7.3.1.1	ok
7.3.2.2	ok
7.3.3.1 not ok
7.3.3.2	not ok
7.3.6.1	not ok
7.4.1.2	not ok
Comment 1 Jan Bart 2022-09-02 09:24:27 UTC
Created attachment 182170 [details]
chapter numbering setup with various styles
Comment 2 Jan Bart 2022-09-02 09:25:12 UTC
Created attachment 182171 [details]
chapter numbering result ok in LO 7.3.2.2
Comment 3 Jan Bart 2022-09-02 09:25:41 UTC
Created attachment 182172 [details]
chapter numbering result not ok in LO 7.3.3.1
Comment 4 Dieter 2022-09-17 13:49:41 UTC
Jan, thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug.
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it)
Comment 5 Jan Bart 2022-09-19 06:58:20 UTC
Created attachment 182538 [details]
master documents and relevant subdocuments and results in pdf

master document and linked subdocuments (in same folder).
resulting pdf for LO versions
7.1.4.2 ok
7.3.2.2 ok
7.3.3.1 not ok
7.4.1.2 not ok
Comment 6 Dieter 2022-09-25 10:18:40 UTC
Jan, thank you for sample document. Now I can reproduce it with

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

but not with

Version: 7.2.7.2 (x64) / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL

Steps to reproduce
1. Open master document from attachment 182538 [details]

Actual result:
Document starts with "Introduction and Description" as Part II on page 5

Expected result:
"Introduction and Description" should be Part I
Comment 7 Jan Bart 2023-01-27 12:29:01 UTC
Created attachment 184959 [details]
LO 7.5.0.2 - about

just wanting to let know that this issue is still present, also in the latest released 7.5.0.2
Comment 8 raal 2023-01-28 13:12:59 UTC
This seems to have begun at the below commit.
Adding Cc: to 	Vasily Melenchuk ; Could you possibly take a look at this one?
Thanks
 e880070a43c036df4c3b778dfd56c1fba997409b is the first bad commit
commit e880070a43c036df4c3b778dfd56c1fba997409b
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Thu Mar 17 12:50:56 2022 +0100

    source c13c94b0ff103484e00403b034eef73ba1ea17c5

https://git.libreoffice.org/core/+/c13c94b0ff103484e00403b034eef73ba1ea17c5
Comment 9 Vasily Melenchuk (CIB) 2023-04-27 10:29:05 UTC
The situation is exactly the same, like in tdf#154081

In given master document we have used style "Revision" (for text "version 1.0.0" on title page). This style is a part of heading numbering (level 6). Same situation is with style "Heading 1 preface" (level 9 of heading numbering). 

They are causing creation of "virtual" upper level numbering and thus "Introduction and description" became Part II.

I'm convinced that situation is okay and not a bug: text is marked as a part of heading numbering so why it should be excluded? MS Word does the same as I see in my experiments.

To repair this document I can propose 2 options:
* Remove "Revision" and "Heading 1 preface" styles from heading numbering (for example, replace it by standard "Heading 6" and "Heading 9")
* Disable numbering for paragraphs using these styles (context menu on "version 1.0.0" -> List -> No List) and do the same of "Contents".

Any option did work for me.
Comment 10 Jan Bart 2023-05-12 15:15:52 UTC
indeed I see that tdf#154081 describes the same problem.
Unfortunately, I can not use the proposed solutions because I use cross-references to the Outline numbering levels in headers and footers, including Level 6 and Level 9.
We need every page to be identifiable by the relevant cross-reference.

It is ironic, we chose OpenOffice and later LibreOffice because the master-subdocument handling was superstrong, unlike MS Word. And this patch of "The logic of Cross Reference representing Paragraph Numbering is different between MSOffice and LibreOffice" now stops us.
Ah well. We will find some solution.

Thank you for your excellent work, keep it up!
Comment 11 Jan Bart 2023-06-16 14:32:22 UTC
indeed solution option 1 works.
thank you all again for your hard work!