Bug 69664 - Writer FileOpen Heading 1 Loses Outline Level for Doc Docx file types
Summary: Writer FileOpen Heading 1 Loses Outline Level for Doc Docx file types
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-22 03:31 UTC by Harald Rudell
Modified: 2014-09-27 14:58 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Test document - but any will do (13.50 KB, application/msword)
2013-09-22 03:31 UTC, Harald Rudell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Rudell 2013-09-22 03:31:44 UTC
Created attachment 86300 [details]
Test document - but any will do

Only Heading 1, Heading 2..10 works fine
Only doc docx, odt works fine

Doc/Docx Heading 1 loses Outline Level on Linux 3.6.2.2, 4.0.2.2, Max 4.1.1.2
1. Place text cursor in Heading 1 title
2. Press F11 (Styles and Formatting): Right click Heading 1, select Modify…
3. Paragraph Style: Heading 1: click Outline & Numbering tab, set Outline level to Level 1, click OK
4. Press F11 for Styles and Formatting to go away
5. Right click the table of contents context〉Update Index/Table
6. Note: Heading 1 appears in table of contents
7. Press Ctrl+S to save
8. Select File〉Close
9. Open the document again
10. BUG: Heading 1 is not in the index

EXPECTED: Index to not change
Comment 1 retired 2013-09-22 08:27:24 UTC
Can confirm this.

Open Test document with Word 2010 TOC is fine. Open Same doc with latest LO master (2013-09-16) Heading 1 is missing. Setting to NEW.
Comment 2 Harald Rudell 2013-09-22 18:25:39 UTC
And sometimes all Heading 1..10 styles loses all information but their font setting. In particular the Organizer-Next setting and their outline level.
- index becomes empty
- get-around: all fonts have to be reloaded from template

If you have a single start line with Title assigned, it displays in the incorrect font. Format>Character displays some other font than what is actually displayed.
- get-around: Clear Direct Formatting displays the correct font
Comment 3 Harald Rudell 2013-09-24 06:31:08 UTC
The impact of this is significant, assuming that LibreOffice works, what matters is how long time various tasks consume:

LibreOffice Writer loses Web Layout on every load, it takes 2.5 s to put it back.

To clear format on Title, add Outline level 1 to Heading 1 and the update the Index takes 24 s.

So, each doc/docx user loses about 20 minutes daily
Comment 4 Owen Genat (retired) 2014-07-20 12:54:05 UTC
Under GNU/Linux using v4.3.0.3 Build ID: 08ebe52789a201dd7d38ef653ef7a48925e7f9f7 the problem as described still exists for the DOC file format (works as expected for DOCX file format). Workaround: Use Tools > Outline Numbering menu to assign headings to outline levels for DOC file format.

Under GNU/Linux using v4.4.0.0.alpha0+ Build ID: 4aa9b041de3129f19b48e66d349f48657b73f33e (2014-07-19) it appears to be solved for DOC file format (and also works as expected for DOCX file format). When opening the provided DOC the Heading 1 paragraph style is already assigned to outline Level 1. 

If someone else can confirm this behaviour this report may be able to be RESOLVED as WORKSFORME (unless someone can point to a specific fix, in which case it can be FIXED).
Comment 5 Buovjaga 2014-09-24 07:47:49 UTC
Works for me, everything is ok from the first opening.

Version: 4.4.0.0.alpha0+
Build ID: 0a32edcdc2bda75a7536ce7f88c91cbc56e7afb1
TinderBox: Win-x86@39, Branch:master, Time: 2014-09-24_00:45:04
Comment 6 Owen Genat (retired) 2014-09-27 14:48:00 UTC
As per comment 4 and comment 5, re-verified as working (using Tools > Outline Numbering i.e., the correct outline numbering method) under GNU/Linux using:

- v4.1.6.2 Build ID: 40ff705089295be5be0aae9b15123f687c05b0a
- v4.2.6.3 Build ID: 3fd416d4c6db7d3204c17ce57a1d70f6e531ee21
- v4.3.1.2 Build ID: 958349dc3b25111dbca392fbc281a05559ef6848
- v4.4.0.0.alpha0+ Build ID: 6ee5be0e1dc300120439c3579430d35e7d31131c TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2014-09-17_10:09:07

RESOLVED as WORKSFORME.
Comment 7 Owen Genat (retired) 2014-09-27 14:58:36 UTC
Sorry, please disregard comment 6 (wrong bug). Re-verified as working for DOC by default upon open under GNU/Linux using:

- v4.4.0.0.alpha0+ Build ID: 6ee5be0e1dc300120439c3579430d35e7d31131c TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2014-09-17_10:09:07

As per comment 5 RESOLVED as WORKSFORME.