Created attachment 86275 [details]
DOCX containing table-of-contents with 2 levels
When LO loads the attached DOCX with the ToC - it imports and renders the levels of the ToC wrong - instead of 2 levels, there is only one level in the ToC (see comparison screenshot).
Steps to reproduce:
1. Load the attached DOCX in LO
2. The ToC's levels are wrong
LO imports and renders the Table-of-Contents with a single level
LO should import and render the Table-of-Contents with 2 levels like MS Word
Operating System: All
Version: 18.104.22.168.alpha0+ Master
This has to do with the '\o' field in the 'document.xml'.
TOC Field Flags:
Created attachment 86276 [details]
Screenshot comparison between MS Word and LibreOffice
Thank you for your bug report,
I can reproduce this bug running LibreOffice:
Build ID: 164b6ce7b27c0a9ec19019e7b078b9f8f382007d
TinderBox: Win-x86@39, Branch:master, Time: 2013-09-28_16:39:4
And Mircosoft Word 2007
But aren't there any duplicate's of this bug?
*** Bug 69649 has been marked as a duplicate of this bug. ***
(In reply to comment #4)
> *** Bug 69649 has been marked as a duplicate of this bug. ***
Thomas. These are not duplicates.
Bug 69655 talks about the level of the Table-of-Contents, meaning - in the original file you have in the ToC - 'Heading 1', 'Heading 1.1' etc.. and in the exported file you only have the first level ('Heading 1', 'Heading 2', etc..)
Bug 69649 talks about the actual page numbers in the ToC that are being imported wrong.
In the original file the page number of the last entry is page #15, and in the file imported by LO - the page number of the last page is page #16.
So these are 2 different import bugs (that both relate to Table-of-Contents).
(In reply to comment #5)
> (In reply to comment #4)
> > *** Bug 69649 has been marked as a duplicate of this bug. ***
> These are not duplicates.
As Vinaya Mandke mentions in his comment on that bug, the commit applied to 69649 (http://cgit.freedesktop.org/libreoffice/core/commit/?id=9679e9c23216decb5f9f25f85b04cb3f25211111) also fixes this behaviour. :)
And I can confirm that, tested using Linux Mint 16 x64 with LibreOffice Version: 22.214.171.124.alpha0+ Build ID: 308fdfb1a9176f65c11d82b95e3aa73b87e2fe47
Marking as RESOLVED FIXED