Bug 113568 - DOCX IMPORT: TOC style is inherited incorrectly
Summary: DOCX IMPORT: TOC style is inherited incorrectly
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.7.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-TableofContents
  Show dependency treegraph
 
Reported: 2017-11-01 12:02 UTC by Alexey Chumakov
Modified: 2018-10-09 11:50 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Chumakov 2017-11-01 12:02:28 UTC
Upon import from MS Word 2010 (other versions apply, too):

1. What's wrong:

Contents styles(TOC 1...9, "Оглавление 1...9" in Russian, English name may be Contents etc.) are formatted incorrectly if inherited from other styles (e.g. TOC 3 is derived from TOC 2). 

It looks like Writer always treats them as derived from 'Normal' style.

2. Steps to reproduce

- open MS Word style editor (Ctrl-Shift-Alt-S)
- Edit 'TOC 2' style
- Change inheritance to 'TOC 1'
- Create TOC, apply some formatting, e.g. tabulation and indents
- Open your document in Writer
- Your formatting is lost for the style

3. Examples (in Russian, but they're easy to understand)

http://take.ms/0XZJO - right rendering (Word 2010)
http://take.ms/mzuLf - style TOC 3 is based on TOC 2 for indents and tabs
http://take.ms/iJ4ux - the same style in Writer (spacing and tab are lost)
http://take.ms/pALoi - TOC 3 is based on TOC 2 in Writer, so inheritance isn't lost but is imported incorrectly

If there is no inheritance, TOC is displayed OK.
Comment 1 Xisco Faulí 2017-11-01 22:39:42 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 2 Timur 2018-07-31 16:37:51 UTC
Please respond and attach the docx file.
Comment 3 Timur 2018-10-09 11:50:08 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team