Issue 123599

Summary: TOC in .doc wrongly includes headings with style "TOC Heading"
Product: Writer Reporter: Edwin Sharp <elish>
Component: open-importAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: issues, rainerbielefeld_ooo_qa, steve.yin.aoo
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: PC   
OS: All   
See Also: https://issues.apache.org/ooo/show_bug.cgi?id=123063
https://issues.apache.org/ooo/show_bug.cgi?id=54042
Issue Type: DEFECT Latest Confirmation in: 4.1.0-dev
Developer Difficulty: ---
Attachments:
Description Flags
sample file from testlink Test Case ID AOOTest-181 none

Description Edwin Sharp 2013-10-31 18:36:02 UTC
Created attachment 81856 [details]
sample file from testlink Test Case ID AOOTest-181

1) open attachment
2) right click TOC - Update Index/Table

Contents entry is added to TOC, undo disabled

3) close document without saving
4) reopen document
5) save as odt
6) close document
7) reopen document

TOC line spacing differs from original 

8) right click TOC - Update Index/Table

TOC line spacing is changed, undo disabled

AOO410m1(Build:9750)  -  Rev. 1537113
Rev.1537113
Comment 1 Rainer Bielefeld 2013-11-04 05:52:51 UTC
I reduce this one to the problem that leading heading "Contents" will be added to TOC (when TOC becomes updated.)

Reproducible with "AOO 4.0.1   – German UI / German locale  [Rev. 1524958 2013-09-20 11:40:29]" on  German WIN7 Home Premium (64bit)", “historic”  4.0  User Profile used for all  predecessor versions

Additional info:
(a) not a new problem, already reproducible with OOo 3.1.1
(b) Was ok with OOo 1.1.5 and OOo 3.0.2
(c) the problem seems to be that OOo 3 and later count the formatting 
    "TOC Heading" of first string "Contents" of document as a normaL heading, so
    that it becomes included into the TOC. Older Versions did not include that 
    special formatting into TOC (what was ok)
(d) I also observe the problem with LibO 3.5.7.2 on UBUNTU, so OS = ALL

@Edwin Sharp
Please submit separate bug reports for different problems you find (spacing has nothing to do with the additional TOC item problem).
If you only observe unexpected effects without being able to contribute background information please submit bugs with initial Status UNCONFIRMED
Comment 2 Rainer Bielefeld 2013-11-04 05:56:59 UTC
(e) Still  Reproducible with server installation of "AOO 4.1.0-Dev – German  UI / 
    German locale - [AOO410m1(Build:9750)  -  Rev. 1537973 - 2013-11-03]" on 
    German WIN7 Home Premium (64bit)", own separate user profile. Because of 
    incomplete LCo selector (Bug 123063) no correct information can be left.
Comment 3 Rainer Bielefeld 2013-11-04 06:31:16 UTC
(c) I think AOO's treating of that Heading is consistent, that style is 
    linked with style "Heading 1". Some special treatment seems to be required
    for that .doc style?
Comment 4 Rainer Bielefeld 2014-03-31 06:24:40 UTC
*** Issue 124564 has been marked as a duplicate of this issue. ***
Comment 5 Rainer Bielefeld 2014-03-31 06:26:40 UTC
Version: See Comment 1 (b)
Latest Confirmation: See Issue 124564