Bug 121523 - EDITING DOCX, The entry in the table of contents (TOC) is lost for Heading applied to a part of the paragraph (imported in LO as character style)
Summary: EDITING DOCX, The entry in the table of contents (TOC) is lost for Heading ap...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-TableofContents
  Show dependency treegraph
 
Reported: 2018-11-19 14:28 UTC by NISZ LibreOffice Team
Modified: 2020-12-30 14:31 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of the original document side by side in Word and Writer, and screenshot of the problem in Writer. (146.40 KB, image/png)
2018-11-19 14:28 UTC, NISZ LibreOffice Team
Details
Example file from Word with a table of contents. (22.09 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-11-19 14:29 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2018-11-19 14:28:19 UTC
Description:
Create a Microsoft Word document with a paragraph and apply the heading style to a part of the paragraph. The entry in the table of contents is lost, when open the document in LibreOffice Writer and update the table of contents.

Steps to Reproduce:
1. Create a new document in Microsoft Word 2010.
2. Type text.
3. Select the first word.
4. On the Home tab, in the Styles group, click Heading 1, Heading 2 or Heading 3.
5. Create a blank paragraph.
6. Create a table of contents.
7. Save the file as DOCX.
8. Open the same file in LibreOffice Writer.
9. Right-click the table of contents, and click Update index.

Actual Results:
The entry in the table of contents is lost.

Expected Results:
The table of contents shouldn’t change.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 NISZ LibreOffice Team 2018-11-19 14:28:50 UTC
Created attachment 146777 [details]
Screenshot of the original document side by side in Word and Writer, and screenshot of the problem in Writer.
Comment 2 NISZ LibreOffice Team 2018-11-19 14:29:18 UTC
Created attachment 146778 [details]
Example file from Word with a table of contents.
Comment 3 Xisco Faulí 2018-11-19 17:46:47 UTC
Reproduced in

Version: 6.2.0.0.beta1+
Build ID: 268364e35100b559f42d8c02b930c5cca1c84be7
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk2; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

Version: 5.2.0.0.alpha0+
Build ID: 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53
Threads 4; Ver: 4.10; Render: default; 

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e

in previous verions the TOC doesn't even have the entry...
Comment 4 Timur 2019-01-16 11:52:23 UTC
Repro master~2019-01-14_07.42.05_LibreOfficeDev_6.3.0.0.alpha0_Win_x86