Bug 81705 - Export to DOC lost outline level
Summary: Export to DOC lost outline level
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium major
Assignee: Justin L
URL:
Whiteboard: target:7.2.0 target:7.3.0
Keywords: filter:doc
Depends on:
Blocks: DOC-Bullet-Number-Lists
  Show dependency treegraph
 
Reported: 2014-07-24 07:25 UTC by Kevin Suo
Modified: 2021-06-21 16:49 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test doc file (9.00 KB, application/msword)
2014-07-24 07:25 UTC, Kevin Suo
Details
outline levelB.doc: export loses outline level on paragraph style (29.00 KB, application/msword)
2021-03-31 17:49 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Suo 2014-07-24 07:25:48 UTC
Created attachment 103383 [details]
test doc file

Steps:
1. Open the attached doc file;
2. Set outline level of style "myStyle" to Level 1;
3. Save (as .doc)and reopen.

--> outline level is lost.

Windows XP SP3
Version: 4.2.6.1
Build ID: 5fdddf655fba363e34f755715238d0943a44857e

Works OK when export to DOCX format.
Comment 1 Robinson Tryon (qubit) 2014-07-26 21:58:14 UTC
Testing on Ubuntu 12.04.4 + LO 4.3.0.3

(In reply to comment #0)
> Steps:
> 1. Open the attached doc file;
> 2. Set outline level of style "myStyle" to Level 1;
> 3. Save (as .doc)and reopen.
> 
> --> outline level is lost.

CONFIRMED

> 
> Works OK when export to DOCX format.

CONFIRMED as well
Comment 2 QA Administrators 2015-09-04 02:49:25 UTC Comment hidden (obsolete)
Comment 3 Kevin Suo 2015-09-07 02:05:46 UTC
(In reply to QA Administrators from comment #2)

This bug is still reproduciable with:
Version: 5.0.1.2
Build ID: 81898c9f5c0d43f3473ba111d7b351050be20261
Locale: zh-CN (zh_CN)
Comment 4 QA Administrators 2016-09-20 10:29:08 UTC Comment hidden (obsolete)
Comment 5 Kevin Suo 2016-09-21 05:46:15 UTC
(In reply to QA Administrators from comment #4)

This bug is still there

Version: 5.2.1.2
Build ID: 31dd62db80d4e60af04904455ec9c9219178d620
CPU Threads: 4; OS Version: Linux 4.4; UI Render: default; 
Locale: zh-CN (zh_CN.UTF-8); Calc: group
Ubuntu 16.04 LTS X64.
Comment 6 Kevin Suo 2017-01-09 03:15:04 UTC
Bug exists in the "oldest" version of the "bibisect-releases" repo. Set version to "Inherited from Ooo".
Comment 7 QA Administrators 2018-10-06 02:50:38 UTC Comment hidden (obsolete, spam)
Comment 8 Justin L 2020-04-23 18:35:54 UTC
repro 7.0+
Comment 9 Justin L 2021-03-17 08:23:55 UTC
repro 7.2+.
(Note to self: this does not involve heading styles/chapter numbering at all - just outline level on a generic style.)
Comment 10 Justin L 2021-03-31 17:49:07 UTC
Created attachment 170879 [details]
outline levelB.doc: export loses outline level on paragraph style

Here is a revised version that shows that import is fine, just export is missing something.

Steps to reproduce
1.) Open the file. Notice that the table of contents only has D(because A/B were added afterwards and the TOC hasn't been updated yet).
2.) resave the file (but don't close yet so you can notice the TOC change later).
3.) Right-click on the TOC and "Update Index". Notice that it expands to include A/B.
4.) reload file (without saving the updated TOC changes).
5.) Again update the TOC. This time it all goes empty, since myStyle no longer includes outline level.

Note: I threw in a wrench by making paragraph C specifically override the style by setting a Body-Text level in the direct paragraph properties.

Proposed fix at https://gerrit.libreoffice.org/c/core/+/113426
Comment 11 Commit Notification 2021-04-08 08:22:38 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/a4d69d2a7680d4c8062119d2b9dab1df7c2b574d

tdf#81705 doc export: write sprmPOutLvl

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 12 Commit Notification 2021-06-21 16:49:34 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/8259a221e0d090a00eb5f102406626dcc7beeb25

related tdf#81705 doc export: eliminate duplicating OutlineNumbering

It will be available in 7.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.