Bug 156484 - FILEOPEN DOCX Hidden shape anchored in header is only hidden on the first page
Summary: FILEOPEN DOCX Hidden shape anchored in header is only hidden on the first page
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.0.4 release
Hardware: All All
: medium normal
Assignee: Michael Stahl (allotropia)
URL:
Whiteboard: target:24.8.0 target:24.2.4
Keywords:
Depends on:
Blocks: OOXML-Shapes DOCX-Header-Footer
  Show dependency treegraph
 
Reported: 2023-07-26 20:24 UTC by Gabor Kelemen (allotropia)
Modified: 2024-05-10 21:35 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2016 (17.10 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-07-26 20:24 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the document in Word and Writer (164.74 KB, image/png)
2023-07-26 20:24 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-07-26 20:24:02 UTC
Created attachment 188581 [details]
Example file from Word 2016

Attached example file has a drawing shape anchored in the header that was set as hidden in Word.
When opened in Writer the shape on the first page is correctly not visible, but on the second and third pages it is.

1. Open attached file
-> there is a blue square shape on the second and third pages

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 42f0422d19c4d0a2fb09654fb6d1d92e50f6dd5c
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

Current behavior started in 6.3 with

https://git.libreoffice.org/core/+/0b9e4f6085d147c43a86d107303eea9b86e7f34c

author	Aron Budea <aron.budea@collabora.com>	Sat Feb 23 02:01:54 2019 +0100
committer	Miklos Vajna <vmiklos@collabora.com>	Mon Mar 04 12:15:11 2019 +0100

tdf#119201 Don't show/print hidden shapes in DOCX

Before this even the first shape was visible, so an improvement - but more should be done in this direction.
Comment 1 Gabor Kelemen (allotropia) 2023-07-26 20:24:24 UTC
Created attachment 188582 [details]
Screenshot of the document in Word and Writer
Comment 2 Aron Budea 2023-07-27 02:59:22 UTC
Confirmed using LO Version: 24.2.0.0.alpha0+ (46d7119b8be03968017e59d882e5671350304e15) / Ubuntu.
Comment 3 Commit Notification 2024-05-10 08:09:18 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/9fb9bd54a82ee20f5916aa68e428e0fb67f02ed6

tdf#156484 svx,sw: fix visibility of shapes in header/footer

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Michael Stahl (allotropia) 2024-05-10 08:11:56 UTC
fixed on master
Comment 5 Commit Notification 2024-05-10 12:08:49 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/b27a39e26bdb1178c6d6a3f6880b9d40a1f9b1ab

tdf#156484: sw_ooxmlexport13: Add unittest

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 6 Commit Notification 2024-05-10 21:35:01 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

https://git.libreoffice.org/core/commit/da7e1d686a586fa93b1e96adb3d837ea3ae59b98

tdf#156484 svx,sw: fix visibility of shapes in header/footer

It will be available in 24.2.4.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.