Bug 163676 - FILEOPEN RTF/DOCX Footer content disappears after changing visibility of formatting marks, etc.
Summary: FILEOPEN RTF/DOCX Footer content disappears after changing visibility of form...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
Depends on:
Blocks: Writer-Header-Footer
  Show dependency treegraph
 
Reported: 2024-10-29 18:43 UTC by Gabor Kelemen (allotropia)
Modified: 2024-11-05 04:52 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2016 with table in footer (50.39 KB, application/msword)
2024-10-29 18:43 UTC, Gabor Kelemen (allotropia)
Details
The document in Word 2016 and Writer after opening - good (56.70 KB, image/png)
2024-10-29 18:44 UTC, Gabor Kelemen (allotropia)
Details
The document after showing/hiding the formatting marks - table is gone + top header is also changed (45.29 KB, image/png)
2024-10-29 18:45 UTC, Gabor Kelemen (allotropia)
Details
The same file in docx format, also shows the same symptom (23.32 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-10-29 18:45 UTC, Gabor Kelemen (allotropia)
Details
Footer-disappears.odt: the file I was testing with (14.50 KB, application/vnd.oasis.opendocument.text)
2024-11-04 20:31 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2024-10-29 18:43:37 UTC
Created attachment 197291 [details]
Example file from Word 2016 with table in footer

Attached RTF document contains different footers in different sections, the first page containing a table.
When opened in Writer, the layout looks good, but hiding / showing the Formatting marks makes the footer disappear.

1. Open attached document
2. Change the visibility of the formatting marks, OR go to Print Preview and back to normal view OR open the Print dialog and close it

->  Table is missing from the firs page footer

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: dd41459378bca78a18f32e61bfac77aa48fabb8d
CPU threads: 14; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: default

Seems to have started with:

https://git.libreoffice.org/core/+/4b0fa253a4540f5461397815d290586f9ddabe61

commit 4b0fa253a4540f5461397815d290586f9ddabe61	[log]
author	Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>	Tue Nov 28 13:46:21 2023 +0900
committer	Tomaž Vajngerl <quikee@gmail.com>	Fri Dec 01 08:26:38 2023 +0100

tdf#136472 adjust ooxml import to handle first header/footer
Comment 1 Gabor Kelemen (allotropia) 2024-10-29 18:44:02 UTC
Created attachment 197292 [details]
The document in Word 2016 and Writer after opening - good
Comment 2 Gabor Kelemen (allotropia) 2024-10-29 18:45:05 UTC
Created attachment 197293 [details]
The document after showing/hiding the formatting marks - table is gone + top header is also changed
Comment 3 Gabor Kelemen (allotropia) 2024-10-29 18:45:36 UTC
Created attachment 197294 [details]
The same file in docx format, also shows the same symptom
Comment 4 m_a_riosv 2024-10-29 23:36:19 UTC
It happens also with 'Whitespace' option. Or editing the Footer with 'Use Dynamic spacing'
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 54a836fa5af3428d893cffe5d7a0963b092e9f70
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 5 Justin L 2024-11-04 20:30:39 UTC
also happens when changing page size or orientation. I can get the table to re-appear by changing the page style away from Converted1, and then back again. This has just exposed some existing problem - not really a regression.

When I save that file as an ODT, I can see the same thing happening, starting in LO 7.5.4 with mikek's https://gerrit.libreoffice.org/c/core/+/151645

commit c2cfeed369a2b0f6d91d1093d3876357277411c9
Author: Mike Kaganski on Wed May 10 20:39:12 2023 +0300
    tdf#155238: Reimplement how ListAutoFormat is stored to ODF

This commit also sounds rather unconnected...

The table in the footer first appeared in 7.1
with commit 15d3a3864879ff405c3f50003571989088be54c3
Author: Justin Luth on Fri Jul 31 13:42:20 2020 +0300
    tdf#135338 sw layout: show FirstLeft on very first left page style.
Comment 6 Justin L 2024-11-04 20:31:27 UTC
Created attachment 197404 [details]
Footer-disappears.odt: the file I was testing with