Bug 142785

Summary: UI Enabling hidden Writer header/footer works unreliably
Product: LibreOffice Reporter: NISZ LibreOffice Team <libreoffice>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: arato.daniel, dgp-mail, nemeth, varga.balazs3
Priority: medium Keywords: implementationError
Version: 7.2.0.0 alpha1+   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=69635
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104522    
Attachments: attachment 86234 after enabling the hidden footer, then the hidden header - good
attachment 86234 after enabling the hidden header, then the hidden footer - bad

Description NISZ LibreOffice Team 2021-06-11 08:32:33 UTC
Created attachment 172798 [details]
attachment 86234 [details] after enabling the hidden footer, then the hidden header - good

This is a followup to bug #69635
When a Word document with hidden header/footer of even page type is opened, enabling both the header/footer sometimes does not work.

Steps to reproduce:
1.	Open attachment 86234 [details] 
2.	Go to Format – Page Style - Header
3.	Uncheck “Same content on left and right pages”
4.	Press Apply. The second pages header is changed to the green “EVEN header”
5.	Go to the Footer tab in the same dialog
6.	Uncheck “Same content on left and right pages”
7.	Press Apply. The second pages footer does NOT change to the green “EVEN header”
8.	Reload the file
9.	Go to Format – Page Style – Footer 
10.	Uncheck “Same content on left and right pages”
11.	Press Apply. The second pages footer now DOES change to the green “EVEN header”
12.	Go to the Header tab
13.	Uncheck “Same content on left and right pages”
14.	Press Apply. The second pages header is changed to the green “EVEN header”

Actual results:
As above.

Expected results:
The second pages hidden header/footer changes regardless of the order of turning off the “Same content on left and right pages” checkbox.

LibreOffice details:
Version: 7.2.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: aa9cb8e14749e7fb7a83b55a2bb095501f731a18
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL
Comment 1 NISZ LibreOffice Team 2021-06-11 08:33:14 UTC
Created attachment 172799 [details]
attachment 86234 [details] after enabling the hidden header, then the hidden footer - bad
Comment 2 Dieter 2021-06-27 10:49:32 UTC
I confirm it with

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 949658028e722e5d2657b503eb20e16e41dbd8cf
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 3 QA Administrators 2023-06-28 03:13:07 UTC Comment hidden (obsolete)
Comment 4 Dieter 2023-07-31 18:35:43 UTC
Still present in

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 42f0422d19c4d0a2fb09654fb6d1d92e50f6dd5c
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded