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: NEW
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: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OOXML-Shapes DOCX-Header-Footer
  Show dependency treegraph
 
Reported: 2023-07-26 20:24 UTC by Gabor Kelemen (allotropia)
Modified: 2023-07-27 02:59 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.