Bug 149672 - FILEOPEN DOCX IF field complex content not imported correctly
Summary: FILEOPEN DOCX IF field complex content not imported correctly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on: 149660
Blocks: DOCX-Fields
  Show dependency treegraph
 
Reported: 2022-06-22 11:07 UTC by Gabor Kelemen (allotropia)
Modified: 2024-06-04 15:59 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2016 (22.29 KB, application/vnd.ms-word.document.macroEnabled.12)
2022-06-22 11:07 UTC, Gabor Kelemen (allotropia)
Details
The example file in Word 2016 and Writer master (130.92 KB, image/png)
2022-06-22 11:08 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) 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)