Bug 149672

Summary: FILEOPEN DOCX IF field complex content not imported correctly
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: dgp-mail
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=149660
https://bugs.documentfoundation.org/show_bug.cgi?id=149674
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on: 149660    
Bug Blocks: 112969    
Attachments: Example file from Word 2016
The example file in Word 2016 and Writer master

Description Gabor Kelemen (allotropia) 2022-06-22 11:07:57 UTC
Created attachment 180896 [details]
Example file from Word 2016

This is a continuation of bug #149660 

Attached docx file contains several IF fields that have formatted paragraphs & table in their conditional parts.
These are not imported correctly, AFAIK the conditional field does not support other than plain text to be displayed depending on the conditions value.

1, Open attached file
2, Observe that the numbered (2) paragraph is not displayed
3, the table in paragraph (3) has been doubled with another table nested into it and its paragraphs are numbered.
4, the checkbox field in paragraph (4) also fell out

(other parts don't work either, those are to be splitted out later)

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 3b852f274696a5e2a44bb4107c37cea9d291758e
CPU threads: 14; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded
Comment 1 Gabor Kelemen (allotropia) 2022-06-22 11:08:33 UTC
Created attachment 180897 [details]
The example file in Word 2016 and Writer master
Comment 2 Dieter 2022-08-03 14:02:59 UTC
I confirm it with

Version: 7.3.5.2 (x64) / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL


Additional informations:
If you open document with field names diabled Lorem Ipsum text is displayed (but layout is still wrong). Text disappears if you enable field names (expectred), but doesn't come back, if you disable field names again.
Format is docm and not docx (don't know, if this is related to the bug)