Bug 56798

Summary: FILEOPEN: Wrong number of levels shown in TOC when opening some MS Word files
Product: LibreOffice Reporter: Michael Kleidt <kleidt>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: ilmari.lauhakangas
Priority: medium    
Version: 3.6.3.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Word document with TOC
MS Word screenshot
LO screenshot

Description Michael Kleidt 2012-11-06 09:31:40 UTC
Created attachment 69600 [details]
Word document with TOC

I open a word document with LibreOffice and found, that the TOC was only shown to level 2 instaed of level 3.

I could not reproduce this problem with a blank document adding a "fresh" TOC. So I copy the TOC to the blank document and add some headings (see attached TOC.doc). I create the document with Word 2003 SP3.

If you load the document with MS Word, you will get a TOC with 3 levels (up to heading 3) and the properties of the TOC shows "3" for number of levels (see attached "MS Word.gif" screenshot)

If you load the document with LO 3.6, you will get a TOC with 2 levels (up to heading 2) and the properties of the TOC shows "2" for number of levels (see attached "LO 3.6.gif" screenshot)
Comment 1 Michael Kleidt 2012-11-06 09:32:26 UTC
Created attachment 69601 [details]
MS Word screenshot
Comment 2 Michael Kleidt 2012-11-06 09:33:04 UTC
Created attachment 69602 [details]
LO screenshot
Comment 3 Florian Reisinger 2013-04-21 10:41:27 UTC
Confirmed with Version 4.0.3.1 (Build ID: a67943cd4d125208f4ea7fa29439551825cfb39) @Win 7 x64
Comment 4 Buovjaga 2014-10-20 11:57:12 UTC
Can't repro on Win 7 64-bit 4.3.2.2 or dev build Version: 4.4.0.0.alpha0+
Build ID: 3e2bd1e4022e25b77bcc8eba5e02c1adc57008a1
TinderBox: Win-x86@42, Branch:master, Time: 2014-10-16_01:04:13
Comment 5 Michael Kleidt 2014-10-21 09:19:00 UTC
I just tested it in Version: 4.3.0.4 and it is fixed!