Bug 163650 - Numbering problem for new "in-line" heading
Summary: Numbering problem for new "in-line" heading
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Heading-Numbering
  Show dependency treegraph
 
Reported: 2024-10-27 21:34 UTC by RGB
Modified: 2024-11-02 17:53 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample document presenting the problem (67.13 KB, application/vnd.oasis.opendocument.text)
2024-10-27 21:34 UTC, RGB
Details
DOCX interoperability example (16.36 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-11-01 13:17 UTC, László Németh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RGB 2024-10-27 21:34:13 UTC
Created attachment 197266 [details]
Sample document presenting the problem

Bug 48459 implemented "in line headings" by using frames to set the heading apart from the main paragraph. This implementation presents a problem when heading numbering is used as you can see on the attached document.

The document is set to number the first two levels, with the second one keeping all sublevels in its numbering. Using the level 1 for "normal headings" and level 2 to set "in-line headings" I get the following numbering scheme, which is wrong

1
1.1
1.2
2
1.3  <--- this should be 2.1
1.4  <--- this should be 2.2

Tested on

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7ee9cc0f6fdf7d459817f87018bd2bde31c7aa1f
CPU threads: 8; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 1 m_a_riosv 2024-10-28 00:55:39 UTC
Putting the '2- First chapter' in a frame, and after cutting and paste the incorrect '1-3' and '1-4', then they get the correct numeration.

Reproducible
Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 2 László Németh 2024-11-01 08:48:18 UTC
I'm afraid, this is an old bug (because OpenDocument numbering is section based), but with the recent implementation of inline headings, it becomes more urgent to fix it. Thanks for the report!
Comment 3 László Németh 2024-11-01 13:17:10 UTC
Created attachment 197333 [details]
DOCX interoperability example
Comment 4 László Németh 2024-11-01 13:18:40 UTC
I've tried to implement the requested numbering in MSO, but it seems, it does the same, as the recent Writer (no multiple level numbering support?). See the attached DOCX document.