Bug 147483 - FILEOPEN DOCX Writer is unable to read image part of grouped shape anchored in floating table
Summary: FILEOPEN DOCX Writer is unable to read image part of grouped shape anchored i...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Floatingtable
  Show dependency treegraph
 
Reported: 2022-02-17 07:09 UTC by NISZ LibreOffice Team
Modified: 2023-09-22 12:29 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Writer unable to read nested floating table/ group textbox in floating table. (23.78 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-02-17 07:12 UTC, NISZ LibreOffice Team
Details
The example file in Word 2016 and Writer (140.78 KB, image/png)
2023-09-05 00:38 UTC, Gabor Kelemen (allotropia)
Details
modified example file from Word 2016 (25.53 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-09-22 12:02 UTC, Gabor Kelemen (allotropia)
Details
The modified example file in Word and Writer (126.82 KB, image/png)
2023-09-22 12:03 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2022-02-17 07:09:17 UTC
Description:
Writer unable to read nested floating table/ group textbox in floating table.

The problem likely in the document model (structure, nodes) because when writer tries to convert the nested frame (floating table or textbox) it throws an exception and that goes wrong. So when a SwTextFrame inside other and that have to be processed on opening that has this problem. Many tickets affected by this issue. 


Steps to Reproduce:
1.Open attachment


Actual Results:
The table is wrong position, and the group textbox has missing content

Expected Results:
The table is in the correct position and the contents are displayed in the group text box.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 11a3e5707d6b524728b24e170eb542bba273d811
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded
Comment 1 NISZ LibreOffice Team 2022-02-17 07:12:28 UTC
Created attachment 178337 [details]
Writer unable to read nested floating table/ group textbox in floating table.
Comment 2 Ezinne 2022-02-23 06:40:02 UTC
Reprpducible in:

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: b965efc0ab5d6996417c92b5588e9d1ff79e0572
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 3 Roman Kuznetsov 2023-04-22 09:05:42 UTC
Still repro in

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5cd9de202765e243e41416802f3e4486b8a96f16
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL threaded
Comment 4 Gabor Kelemen (allotropia) 2023-09-05 00:38:51 UTC
Created attachment 189355 [details]
The example file in Word 2016 and Writer

Now this looks kinda okay, except for the image inside of the group, which is completely lost.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cc7d6211bc01e5ec84dbad542605d2e93dea925c
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded
Comment 5 Gabor Kelemen (allotropia) 2023-09-22 12:02:36 UTC
Created attachment 189756 [details]
modified example file from Word 2016

Changed the example file a bit: if the grouped shape is anchored outside of the floating table, the image is visible.
If it is anchored inside the floating table, only the shapes appear.
Comment 6 Gabor Kelemen (allotropia) 2023-09-22 12:03:05 UTC
Created attachment 189757 [details]
The modified example file in Word and Writer
Comment 7 Gabor Kelemen (allotropia) 2023-09-22 12:28:23 UTC
The image in the outside of table anchored GS started to show up in 7.4 with:

https://git.libreoffice.org/core/+/121cbc250b36290f0f8c7265fea57256dad69553

author	Attila Bakos (NISZ) <bakos.attilakaroly@nisz.hu>	Thu Nov 11 14:02:12 2021 +0100
committer	László Németh <nemeth@numbertext.org>	Thu Jan 06 10:41:32 2022 +0100

tdf#66039 DOCX: import textboxes (with tables, images etc.) in group shapes

Maybe this gives a hint.