Bug 164097 - Deleting header do not delete all header style data
Summary: Deleting header do not delete all header style data
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.7.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks: Writer-Header-Footer
  Show dependency treegraph
 
Reported: 2024-11-29 20:25 UTC by LeroyG
Modified: 2025-01-15 13:11 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
xml data in table to compare differences. (39.44 KB, application/vnd.oasis.opendocument.text)
2024-11-29 20:25 UTC, LeroyG
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LeroyG 2024-11-29 20:25:48 UTC
Created attachment 197870 [details]
xml data in table to compare differences.

In a odt file, when a header is unset ([ ] Header on), there are style data that is not delete.
This affects the default tabs position (center and right) in the header when a new paper format is selected.
I compared the styles.xml subfile of a new empty document without header, a new empty document with header, and a new empty document with the header removed. See in the attachment.

Steps to reproduce:
1. Set header in a document.
2. Unset the header.

Actual results:
After step 2, there are unused(?) style data that remains.

Expected results:
After step 2, unused style data must disappears, so if a different paper format is selected, center and right tab stops are correctly positioned.

I hope implementing this won't be a difficult task.

Version: 24.2.7.2 (X86_64) / LibreOffice Community
Build ID: ee3885777aa7032db5a9b65deec9457448a91162
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: es-MX (es_ES); UI: en-US
Calc: CL threaded