Bug 155954 - Chapter field is lost after saving and reopening the .docx
Summary: Chapter field is lost after saving and reopening the .docx
Status: RESOLVED DUPLICATE of bug 86790
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.5.1.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-21 05:42 UTC by space
Modified: 2023-06-21 11:09 UTC (History)
1 user (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 space 2023-06-21 05:42:55 UTC
Description:
The insterted field style of chapter will be lost after saving and reopening the .docx

Steps to Reproduce:
1.Create a new document(File->Text Document).
2.Add a new chapter with chapter number and name, then set its stype "Heading 1"
3.Insert a chapter field in previous chapter by "Insert->Field->More Fields->Document->Chapter->Chaper number and name".
4.Save the document as .docx(Word 2007-365).
5.Reopen the saved document.

Actual Results:
After step 5, the inserted field style is lost and changed to be normal text body.

Expected Results:
After step 5, the inserted field style of chapter should still exist


Reproducible: Always


User Profile Reset: No

Additional Info:
In LO v7.3, the inserted field will change to be word "Chapter" after reopening.
Comment 1 Stéphane Guillou (stragu) 2023-06-21 11:09:24 UTC
Reproduced in:

Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

and a recent master build:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 66da786bdd4588b31755058acf46034c2056215c
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

(and since OOo times to DOC.)

I understand this DOCX limitation could be fixed by solving bug 86790 and using STYLEREF for it.
Because Bug 96559 was marked as a duplicate of bug 86790, I'll do the same with this one.

Thank you!

*** This bug has been marked as a duplicate of bug 86790 ***