Bug 170858 - Setting the background color in the Table Of Contents is not saved in .docx
Summary: Setting the background color in the Table Of Contents is not saved in .docx
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.7.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-TableofContents
  Show dependency treegraph
 
Reported: 2026-02-17 20:21 UTC by Lex Nesta
Modified: 2026-02-18 17:25 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
WNC By-Laws TOC Issue (72.39 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2026-02-17 20:25 UTC, Lex Nesta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lex Nesta 2026-02-17 20:21:50 UTC
Description:
I'm able to create a TOC, but three things are not saved after I close the document and reopen it. the file is saved as a docx.
1. The table background color reverts back to grey after changing it to white.
2. I cannot press the control key and click on a section of the TOC and take me to the section. If I reorder the TOC, it starts working again until I save the document close it and reopen it.
3. The "Protect Against Manual Changes" check box reverts back to "checked" after reopening the document.

Steps to Reproduce:
1. Create TOC using Header ! and Header 2.
2. Right Click, choosw "Edit Table of Contents"
3. Click on Background / Color Button
4. Change the Color to "white"
5. Click on "ok"
6. Save document as a "docx"
7. reopen the document
8. The TOC will be reverted back to the default settings and using the TOC in conjunction with the "Control Key" will not guide you to the section of the document. 

Actual Results:
Re-opening the document will show the default TOC settings, not the setting that should have been saved.

Expected Results:
MY TOC configurations setting were not saved.


Reproducible: Always


User Profile Reset: No

Additional Info:
The changes to my TOC should have been saved.
Comment 1 Lex Nesta 2026-02-17 20:25:01 UTC
Created attachment 205587 [details]
WNC By-Laws TOC Issue
Comment 2 Mateusz Wlazłowski 2026-02-18 17:25:08 UTC
Confirm,

Same document re-saved to .odt keeps the background color of the TOC


Version: 26.2.0.3 (X86_64)
Build ID: afbbd0df0edb6d40b450b0337ac646b0913a760c
CPU threads: 8; OS: Linux 6.17; UI render: default; VCL: gtk3
Locale: en-GB (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded