Bug 158865 - FILEOPEN Page numbers not displayed correctly in DOCX
Summary: FILEOPEN Page numbers not displayed correctly in DOCX
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.0.3 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-Content_Control
  Show dependency treegraph
 
Reported: 2023-12-26 08:36 UTC by DKG
Modified: 2023-12-27 19:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Test case for page numbers (41.75 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-12-26 08:37 UTC, DKG
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DKG 2023-12-26 08:36:57 UTC
Description:
Page numbers are not displayed correctly when opening various DOCX files created in Microsoft Office Word (OK with Word 2016).

Steps to Reproduce:
1. Open the attached sample file.

Actual Results:
In the header, 'PAGE   \* MERGEFORMAT2' shows up. After hitting Ctrl + F9, 'Input field' shows up.

Expected Results:
Instead, page numbers should be displayed (this happens in MS Word 2016).


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.1.2 (X86_64) / LibreOffice Community
Build ID: f5defcebd022c5bc36bbb79be232cb6926d8f674
CPU threads: 16; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded
Comment 1 DKG 2023-12-26 08:37:49 UTC
Created attachment 191596 [details]
Test case for page numbers
Comment 2 Gabor Kelemen (allotropia) 2023-12-27 19:14:34 UTC
This seems to have been solved recently in 24.2 with:

https://git.libreoffice.org/core/+/5082d50d24c3fec4487c724a15eb0d54a82ecd0d

uthor	Jaume Pujantell <jaume.pujantell@collabora.com>	Wed Sep 13 08:58:21 2023 +0200
committer	Jaume Pujantell <jaume.pujantell@collabora.com>	Wed Oct 11 15:19:58 2023 +0200

writerfilter: use content controls for text in block SDTs

(and started in 7.3 with:
https://git.libreoffice.org/core/commit/a4432eb0946c0bc775b3d30b634bef5d66544f8d

tdf#104823: support for sdt plain text fields
)