Apache OpenOffice (AOO) Bugzilla – Issue 107610
Paragraph style assignments in Outline of template lost from second level on
Last modified: 2013-08-07 14:44:00 UTC
Have a writer template with defined Outline numbering levels 1...4 like 1, 1.1, 1.1.1. and 1.1.1.1. These have Paragraph styles "Heading 1", "Heading 2"... assigned respectively. (see attached Document) Open in in 3.1.1 will work nice: Setting Heading 2...n as paragraph style will format the paragraph font and numbering in expected way. The same template opened in 3.2m7 seems to be loosing the "Paragraph Style" information in "Outline Numbering" in all levels > 1 (these are unused in the template text, but are defined). All levels 2...n have "none" instead of "Heading 2", "Heading 3"... and behave erroneous (as no "show sublevels" were selected but consecutive numbering instead). Formatting of font is OK anyhow. When using a document instead the template everything is ok - this occurs only when using a template. Even creating a new document from the template and save it unchanged in 3.1.1 will open and work as expected in m7 - only if the document is created out of the template using m7, the information in paragraph style will not be read. Changing the template and assigning "Heading 2" as a paragraph style for some text contained in the template, the template will be read ok also in m7. Conclusion: If Outline levels > 1 are defined in a template but not assigned to some "real" text, 3.2m7 will not read the Outline level to Paragraph Style assignment of level 2 and consecutive levels. At least an outline of level 2 has to be assigned to some text, then also for subsequent levels the Outline level to Paragraph Style assignment will be read right. (hope I'm clear?)
Created attachment 66600 [details] Template with outline levels defined
Confirmed this on Windows. MRU->OD: see attached template, when opening in 320m7 all styles assignments in Outline are lost from second level on. Worked fine in 3.1.1.
Forgot to reassign...
Another evaluation: The template was created with a developer build from OO 2.x, namely 680m173. We have to find out, why this cannot be interpreted correctly since 320m6. When saving this template with 3.1.1 or even correcting in 320m7 (and then saving) will not show the problem when re-opening in 320m7...
Accepted - fix in progress. Defect has been introduced with fix for issue 106218.
Created attachment 66603 [details] patch to fix this issue
Fix available - see attached patch. Searching for cws respectively creating new cws in order to commit the patch.
applied patch to cws sw32bf09 - changed file: /xmloff/source/text/txtimp.cxx, rev. 277785
OD->MRU: Checked in internal installation set of cws sw32bf09 - please verify.
Checked fix in CWS sw32bf09. Fix for issue 106218 still works.
Checked in OOO320m11 and DEV300m70.