Bug 69811 - EDITING: Undo a Change of Heading Style with Chapter Numbering, will revert numbering style to Level 1 - until document reloads
Summary: EDITING: Undo a Change of Heading Style with Chapter Numbering, will revert n...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
: 134282 (view as bug list)
Depends on:
Blocks: Heading-Numbering Undo-Redo
  Show dependency treegraph
 
Reported: 2013-09-25 13:36 UTC by a2313714
Modified: 2023-07-13 16:24 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Test ODT (22.64 KB, application/vnd.oasis.opendocument.text)
2020-06-25 09:20 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description a2313714 2013-09-25 13:36:25 UTC
Problem description: 

If you have outline numbering for headings enabled and you change the heading level (e.g. 3 -> 4) and then hit undo, the line reverts to Heading 1 style instead of the previous style.

Steps to reproduce:
1. Open a new document
2. Tools > Outline Numbering
3. Set levels 1, 2, 3 and 4 to 'Number' style (so Heading 4 would be 1.1.1.1)
4. Set the current line to 'Heading 3' style
5. Change the current line to 'Heading 4' style
6. Hit undo (Ctrl+Z)

Current behavior:

The heading becomes '1' (goes to Heading 1 style)

Expected behavior:

The heading becomes '1.1.1' (goes back to Heading 3 style)
              
Operating System: Windows 7
Version: 4.1.1.2 release
Comment 1 Thomas van der Meulen [retired] 2013-09-27 15:15:00 UTC
Thank you for your bug report, 
I can reproduce this bug running: 
Version: 4.1.1.2
Build ID: 410m0(Build:2)
OS: Ubuntu 13.04 64-bits
Comment 2 Matthew Francis 2015-01-21 07:40:02 UTC
This occurs all the way back to 3.3.0

Setting Version -> Inherited from OOo
Comment 3 QA Administrators 2016-02-21 08:35:46 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2017-03-06 15:21:47 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2019-12-03 14:12:16 UTC Comment hidden (obsolete)
Comment 6 sdc.blanco 2019-12-27 20:05:24 UTC
Can repro partially with:

Version: 6.4.0.0.beta1 (x64)
Build ID: 4d7e5b0c40ed843384704eca3ce21981d4e98920
CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: GL; VCL: win; 
Locale: da-DK (en_DK); UI-Language: en-US
Calc: CL

Additional information:

Following procedure in original report...

1.  The paragraph style goes back to Heading 3 after undo.  (i.e., behaves as expected, does not repro original report).

2.  The numbering does go back to the numbering style for Level 1.

(good way to see/test this problem,  in step 3, choose different numbering styles, e.g, I, a, 1 for each level.  On Ctrl-Z, the level 1 numbering is used.)

3. Made additional experiments such as:

a.  Apply Heading 2, then Heading 4, then Ctrl-Z
b.  Apply Heading 4, then Heading 2, then Ctrl-Z
c.  etc.

In each case, the paragraph style is undone correctly, but always the numbering style for Level 1 is shown.

4.  Have adjusted summary to express the problem more precisely.
Comment 7 Timur 2020-06-25 09:15:01 UTC
*** Bug 134282 has been marked as a duplicate of this bug. ***
Comment 8 Timur 2020-06-25 09:20:42 UTC
Created attachment 162392 [details]
Test ODT

Wrong number for heading is temporary, until next document reload.
Comment 9 Justin L 2021-09-25 09:34:15 UTC
repro 7.3+