Bug 128770 - FILEOPEN DOCX Page number in grouped shape doesn’t show the correct page number
Summary: FILEOPEN DOCX Page number in grouped shape doesn’t show the correct page number
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:docx
Depends on:
Blocks: DOCX-Fields DOCX-Grouped-Shapes
  Show dependency treegraph
 
Reported: 2019-11-13 11:16 UTC by NISZ LibreOffice Team
Modified: 2022-07-13 12:54 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
The example file in Word and Writer (15.63 KB, image/png)
2019-11-13 11:17 UTC, NISZ LibreOffice Team
Details
Example file from Word (35.42 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-11-13 11:18 UTC, NISZ LibreOffice Team
Details
The example files first two pages in current master (10.92 KB, image/png)
2022-01-17 00:24 UTC, Gabor Kelemen (allotropia)
Details
Right page number shown in bad position (7.5 master) (153.53 KB, image/jpeg)
2022-07-13 12:54 UTC, Attila Bakos (NISZ)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2019-11-13 11:16:55 UTC
Description:
Automatic page numbering doesn’t work that case when it is placed into a grouped shape.

Steps to Reproduce:
    1. Create a new file in Word with page numbering using Header & Footer -> Page Number -> At bottom of page -> With shapes and one of Mosaic or Square, Arrow, Paper pile etc.
    2. Insert multiple pages so that there will be different numbers at the bottom of the pages
    3. Save the file and open it in Writer

Actual Results:
The page numbering inside a grouped shape has the same value on all pages

Expected Results:
The page numbering has to change on each pages.


Reproducible: Always


User Profile Reset: No



Additional Info:
LibreOffice details:

Version: 6.4.0.0.alpha1+ (x86)
Build ID: 80109586e6cb6d3e2e0a53a9079c3125ec9b8368
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win; 
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: CL

also happens in:

Verzió: 6.0.0.1 (x64)
Build az.: d2bec56d7865f05a1003dc88449f2b0fdd85309a
CPU szálak: 8; OS: Windows 10.0; Felületmegjelenítés: GL; 
Területi beállítások: hu-HU (hu_HU); Calc: CL


Verzió: 5.0.0.1 (x64)
Build az.: 9a0b23dd0ab9652e0965484934309f2d49a7758e
Területi beállítások: hu-HU (hu_HU)

Verzió: 4.0.0.1 (Build az.: 527dba6f6e0cfbbc71bd6e7b88a52699bb48799)
Comment 1 NISZ LibreOffice Team 2019-11-13 11:17:32 UTC
Created attachment 155776 [details]
The example file in Word and Writer
Comment 2 NISZ LibreOffice Team 2019-11-13 11:18:00 UTC
Created attachment 155777 [details]
Example file from Word
Comment 3 Timur 2019-11-19 09:21:00 UTC
Page number in shape wasn't present in OO. Were seen in 3.6 but seems because shape wasn't read. 4.0 also not all is there. 5.0 has the shape but not correct number, so I set version to 5.0 New.

Please see if a duplicate of bug 89389.
Comment 4 NISZ LibreOffice Team 2020-05-21 15:57:14 UTC
(In reply to Timur from comment #3)
> Page number in shape wasn't present in OO. Were seen in 3.6 but seems
> because shape wasn't read. 4.0 also not all is there. 5.0 has the shape but
> not correct number, so I set version to 5.0 New.
> 
> Please see if a duplicate of bug 89389.

I don't think this is a duplicate of that.

More likely belongs to the family of "things you can't do to the Writer grouped shapes text box" that you can in Word / normal Writer shapes:
- Set Paragraph styles: bug #96642
- Set Bullets&Numbering: bug #122960
- Set hyperlink: bug #126426
- Insert image: bug #81958
- Insert fields: this one.
Comment 5 Gabor Kelemen (allotropia) 2022-01-17 00:24:10 UTC
Created attachment 177592 [details]
The example files first two pages in current master

The first page number field is visible, but the second and third are now hidden somewhere in:

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 3b48e20b0101584a5e7ef48ba82238e735f0772b
CPU threads: 13; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded
Comment 6 Timur 2022-01-17 10:04:32 UTC
Change (from wrong to differently wrong) was in:
commit a0018b7bdfa3b444f90e432d5a8e79ae55feb96d
    source sha:2951cbdf3a6e2b62461665546b47e1d253fcb834
    pre sha:cce57fd94e9335c5dd5f3725a5fe54f5d3929e8d
author	Attila Bakos (NISZ) <bakos.attilakaroly@nisz.hu>	Wed Nov 10 2021 
tdf#143574 OOXML export/import of textboxes in group shapes
Comment 7 Attila Bakos (NISZ) 2022-07-13 12:54:55 UTC
Created attachment 181252 [details]
Right page number shown in bad position (7.5 master)

Almost good... :)