Issue 124855 - Outline numbering corrupted by heading styles
Summary: Outline numbering corrupted by heading styles
Status: UNCONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: 4.0.1
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-08 15:26 UTC by circulars
Modified: 2015-10-07 01:58 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
outline/heading conflict anonymised example (24.54 KB, application/vnd.oasis.opendocument.text)
2014-05-08 15:26 UTC, circulars
no flags Details
unformatted outline sample created for testing (13.56 KB, application/vnd.oasis.opendocument.text)
2014-05-08 15:28 UTC, circulars
no flags Details
template (blank) for testing (11.68 KB, application/vnd.oasis.opendocument.text-template)
2014-05-08 15:29 UTC, circulars
no flags Details
before bug screenshot - document csc0.6 (5.57 KB, image/png)
2015-10-07 01:55 UTC, Jocday Macias
no flags Details
after bug screenshot - document csc0.6 (7.95 KB, image/png)
2015-10-07 01:56 UTC, Jocday Macias
no flags Details
before bug screenshot - document raw outline (5.50 KB, image/png)
2015-10-07 01:57 UTC, Jocday Macias
no flags Details
after bug screenshot - document raw outline (4.89 KB, image/png)
2015-10-07 01:57 UTC, Jocday Macias
no flags Details
clarify steps (58.07 KB, image/png)
2015-10-07 01:58 UTC, Jocday Macias
no flags Details
clarify steps 2 (66.06 KB, image/png)
2015-10-07 01:58 UTC, Jocday Macias
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description circulars 2014-05-08 15:26:21 UTC
Created attachment 83359 [details]
outline/heading conflict anonymised example

Applying the standard heading styles (Heading 1, Heading 2 etc.) to outlines often corrupts the numbering. This bug has been around for many years. It can occur in a number of ways:


1. The numbering of the heading may be lost, requiring it to be restored using the 'continue previous numbering' command.

2. The numbering of the heading may be corrupted to 1, again requiring the restoration of the correct numbering using 'continue previous numbering'.

3. However restoring in this way may result in the loss of the heading style.

4. Sometimes restoring using 'continue previous numbering'  is not possible, so the numbering remains stuck on the erroneous value of 1.


In all cases of corruption, the outline numbering following the paragraph affected is reduced by one as a result - as if the paragraph affected does not exist.

This bug appears to be linked to Issue 124772 - Outline Numbering: Position settings corrupted. But it can occur independently.

REPLICATION 

1. Open csc 0.6 z.odt. (This is the same test document supplied to demonstrate Issue 124772).

2. Go to paragraph 3. Click in heading. Apply style 'Heading 1': Numbering corrupts to 2, and subsequent numbering corrupts from 3.1 to 2.19.

3. Click Continue previous numbering' and correct values are restored.

4. Go to paragraph 3.9. Apply style 'Heading 2'. Outline numbering is turned off. Following sub-paragraph numbering corrupts from 3.9.1 to 3.8.1.

5. Turn on outline. Old para 3.9 is now numbered 2.1. Following paragraph remains 3.8.1.

6. Click 'Continue previous numbering' and correct values are restored.

7. Go to para 3.10.1. Apply Heading 3. Numbering corrupts to 2.1.1, that of following para to 3.10.1. 

8. Hit 'continue previous numbering'. The correct numbering is restored for both AND THE BUG REPORTED 124772 IS RELEASED - the position settings are restored as set in the Bullets and Numbering/Position dialogue. However this is now inconsistent with the rest of document, in which the layout remains corrupt.


INDEPENDENT REPLICATION 1

1. The attachment 'raw outline sample 1.0' has been produced to save the tedium of typing from scratch. If that is acceptable, open it.

2. Apply Headings 1 to 10 following the methodology set out above.

3. Observe the results. Corruption will occur as above, and be rectified by hitting 'Continue previous numbering'.


INDEPENDENT REPLICATION 2

1. If the sample above is not acceptable, open a new doc from template 4.ott.
2. Turn on outline numbering and select 1.1.1.1.1.

3. Construct your own outline document from scratch employing levels 1 to 10.

4. Apply Headings 1 to 10 following the methodology set out above.

5. Observe the results.

INDEPENDENT REPLICATION 3

6. Save a copy of the document used in Replication above.

7. Select all. Delete, leaving a blank document.

8. Repeat steps 2 - 5 in Independent Replication 2 above.


Many thanks. Hope it is sufficient. Please confirm.
Comment 1 circulars 2014-05-08 15:28:42 UTC
Created attachment 83360 [details]
unformatted outline sample created for testing

Seems you can only attach one file to the bug report, so here is the second.
Comment 2 circulars 2014-05-08 15:29:54 UTC
Created attachment 83361 [details]
template (blank) for testing
Comment 3 Jocday Macias 2015-10-07 01:54:22 UTC
I was able to reproduce this bug (except complete corruption of outline as I was always able to undo changes). Full report below.

Description: 
Applying headings to outlines can change the numbering of the outline incorrectly. 

Configuration Info: 
Intel i7 processor 64-bit. Windows 10.0.10240 Build 10240. OpenOffice 4.2.0(Build: 9800) - Rev. 1692551

Similar/Related bugs: 
Issue 42963 and Issue 124772 seem to be related to original report but I could not reproduce either bug. I was always able to undo any changes and never corrupted the file. 


Reproduction steps:

1)	Download original files provided in bug report 
        file: “outline/heading conflict anonymised example” 
        file: “unformatted outline sample created for testing”

2)	Open each file with Open Office (should see outline document with different headings applied and “bullets and numbering” toolbar). If you do not see the “bullets and numbering” toolbar, click on “view” on the main toolbar across the top of the document, then hover over “toolbars” and click on “bullets and numbering” from the menu that appears. Bullets and numbering toolbar should now appear. See repro_shot_1 / repro_shot_2 screenshots – one for each file.

3)	Next, scroll down each document until you locate section 3 (See repro_shot_1 screenshot / repro_shot_2 screenshots – one for each file)

4)	Put your cursor at section 3, and apply a different heading such as 3.


Notice failure: outline numbering is incorrect. Notice that numbering resets to 1 (Or disappears depending on heading picked), and starts numbering from there when it should instead continue from previous numbering (ex: switching heading should not reset heading number to 1, but continue with same numbering but with new heading level applied). Notice that you can undo these changes, or apply different headings.
 

Notes: Could reproduce with files provided in original bug report, but could not reproduce on my own created files. Followed the exact steps detailed above in all reproduction attempts, and made sure settings matched in my document but could still not reproduce on my own document. However, I could reproduce it throughout the documents supplied. I could not reproduce the complete corruption of the numbering, as I was always able to revert the changes back to a previous state. I tried changing the indent of headings, whether they were numbered or not, what type of numbering they used (letters, numbers, etc.) and followed steps above, but bug still persisted. Trying different sections of the document also produced the same results. I have attached screenshots to clarify some of the steps and to show before and after the reproduced bug as well. 


Additional Info - For those who may not completely understand headings, or want an in-depth guide with setting up headings outlines and numbering, these two links are from the open office wiki and explain these topics in detail:

https://wiki.openoffice.org/wiki/Documentation/UserGuide/Writer/OutlineNumbering

https://wiki.openoffice.org/wiki/Documentation/OOoAuthors_User_Manual/Writer_Guide/Defining_a_hierarchy_of_headings
Comment 4 Jocday Macias 2015-10-07 01:55:52 UTC
Created attachment 85007 [details]
before bug screenshot - document csc0.6
Comment 5 Jocday Macias 2015-10-07 01:56:28 UTC
Created attachment 85008 [details]
after bug screenshot - document csc0.6
Comment 6 Jocday Macias 2015-10-07 01:57:01 UTC
Created attachment 85009 [details]
before bug screenshot - document raw outline
Comment 7 Jocday Macias 2015-10-07 01:57:41 UTC
Created attachment 85010 [details]
after bug screenshot - document raw outline
Comment 8 Jocday Macias 2015-10-07 01:58:03 UTC
Created attachment 85011 [details]
clarify steps
Comment 9 Jocday Macias 2015-10-07 01:58:40 UTC
Created attachment 85012 [details]
clarify steps 2