Issue 107610 - Paragraph style assignments in Outline of template lost from second level on
Summary: Paragraph style assignments in Outline of template lost from second level on
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOO320m7
Hardware: All Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
Keywords: data_loss, numbering, regression
Depends on:
Blocks: 99999
  Show dependency tree
Reported: 2009-12-11 01:03 UTC by Uwe Altmann
Modified: 2013-08-07 14:44 UTC (History)
2 users (show)

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

Template with outline levels defined (15.42 KB, application/vnd.oasis.opendocument.text-template)
2009-12-11 01:09 UTC, Uwe Altmann
no flags Details
patch to fix this issue (614 bytes, patch)
2009-12-11 09:56 UTC, Oliver-Rainer Wittmann
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Uwe Altmann 2009-12-11 01:03:25 UTC
Have a writer template with defined Outline numbering levels 1...4 like 1, 1.1, 1.1.1. and 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?)
Comment 1 Uwe Altmann 2009-12-11 01:09:40 UTC
Created attachment 66600 [details]
Template with outline levels defined
Comment 2 michael.ruess 2009-12-11 08:51:46 UTC
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.
Comment 3 michael.ruess 2009-12-11 08:54:13 UTC
Forgot to reassign...
Comment 4 michael.ruess 2009-12-11 09:09:20 UTC
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...
Comment 5 Oliver-Rainer Wittmann 2009-12-11 09:16:55 UTC
Accepted - fix in progress.

Defect has been introduced with fix for issue 106218.
Comment 6 Oliver-Rainer Wittmann 2009-12-11 09:56:53 UTC
Created attachment 66603 [details]
patch to fix this issue
Comment 7 Oliver-Rainer Wittmann 2009-12-11 09:58:08 UTC
Fix available - see attached patch.

Searching for cws respectively creating new cws in order to commit the patch.
Comment 8 Oliver-Rainer Wittmann 2009-12-11 11:04:50 UTC
applied patch to cws sw32bf09 - changed file:
/xmloff/source/text/txtimp.cxx, rev. 277785
Comment 9 Oliver-Rainer Wittmann 2009-12-11 11:38:24 UTC
OD->MRU: Checked in internal installation set of cws sw32bf09 - please verify.
Comment 10 michael.ruess 2009-12-11 15:50:46 UTC
Checked fix in CWS sw32bf09. Fix for issue 106218 still works.
Comment 11 michael.ruess 2010-01-27 16:48:35 UTC
Checked in OOO320m11 and DEV300m70.