Description: Custom styles in Writer allow creating headings like 'heading F' to produce headings like 'F1 First Heading' work at first, producing entries in the TOC, but suddenly fail and cannot be recovered in the document. Steps to Reproduce: 1.Create new file 2.Create 3 different custom headings of form A1 Heading A, B1 Heading B, AA1 Heading AA. They have to be at heading levels 3, 4, 5. 3.Create table of contents. 4.Edit table of contents to have levels 1, 2, 3, 3, 3 so that the headings at levels 3, 4, 5 all show at level 3 in the TOC. 5.Save file and adjust TOC display several times. 6. Option to ensure kiss of death save as docx and open again. Actual Results: At first the TOC appeared as expected. See attachment 1. Expected Results: The TOC appeared as in attachment 2. I could not recover the original even though the setup screens all looked correct and I closed LO and reopened it. Reproducible: Always User Profile Reset: Yes OpenGL enabled: Yes Additional Info: There are three screen shot attachments.
Created attachment 162235 [details] How the TOC should look.
Created attachment 162236 [details] Styles Definition
Created attachment 162237 [details] TOC Styles
Created attachment 162238 [details] Test file This is a cut down version of the affected document.
I was obviously working too late. I saved the document with a new name, and deleted the TOC. I then recreated the TOC and it was perfect.