Bug 130293 - Paragraph numbering not updated when a style in the same hierarchy is used earlier in the document
Summary: Paragraph numbering not updated when a style in the same hierarchy is used ea...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Bullet-Number-Outline-Lists
  Show dependency treegraph
Reported: 2020-01-30 14:09 UTC by Matthew Kogan
Modified: 2020-06-25 11:18 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Kogan 2020-01-30 14:09:52 UTC
Paragraph numbering not updated when a style in the same hierarchy is used earlier in the document.

Steps to Reproduce:
1.Add two paragraphs to a new document
2.Select the Heading 1 style for the second paragraph, and click the Numbered button
3.Select the Heading 4 style for the first paragraph, click the Numbered button
4.Select the Illustration style for the first paragraph, then re-select the Heading 4 style

Actual Results:
The number for the second paragraph is incorrectly set to 1 after the final step.

Expected Results:
The number for the second paragraph should be set to 2.

Reproducible: Always

User Profile Reset: No

Additional Info:
If you do Print Preview after the final step, the numbering is corrected. But exporting to PDF does not correct the numbering.
Comment 1 Dieter 2020-01-30 15:16:24 UTC
I confirm the steps with

Version: (x64)
Build ID: eeb2d19e77d6dc47c68e8ba0920a02cf64a1247b
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-GB
Calc: threaded

=> NEW

I also confirm, that numbering is corrected in the document after print preview. But I can't confirm the wrong numbering in PDF document
Comment 2 sdc.blanco 2020-01-31 10:09:40 UTC
Can confirm the steps (did not test printing) in

Additional information

1.  "Update All"  does not help either.

2.  Toggle Numbering for Heading 4 gives expected effect. (no printing needed)

3.  Conduct step 4 (in described procedure) with "Tools-Chapter Numbering" (i.e., change paragraph style for Level 4 to another non-heading style and then back to a Heading n style), then works as expected.  

(if "Illustration" style not previously used in document, then will not appear in  Chapter Numbering dropdown box for Paragraph Style, try with Index, for example).)

(semi-)Explanation.  Heading n styles have a special piece of code for linking numbering style with Heading.  Works correctly when using Chapter Numbering (which is probably expected use).  Toggling Numbering seems to "reinvoke" the connection that was lost when changing to a non-heading style.