Bug 148173 - FILEOPEN DOCX Ref field incorrect with "Paragraph # from marked paragraph" and "Relative position of paragraph" enabled
Summary: FILEOPEN DOCX Ref field incorrect with "Paragraph # from marked paragraph" an...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Fields
  Show dependency treegraph
 
Reported: 2022-03-25 07:59 UTC by Gabor Kelemen (allotropia)
Modified: 2022-04-09 11:37 UTC (History)
1 user (show)

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


Attachments
The paragraph numbered 9 in Word and Writer (167.34 KB, image/png)
2022-03-25 07:59 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-03-25 07:59:21 UTC
Created attachment 179096 [details]
The paragraph numbered 9 in Word and Writer

This is a followup to bug 145215

attachment 175829 [details] contains some example fields on page 51 under title "Schedule 99"

Many of these are appearing the same as in Word, this report focuses on the "Ref" field of paragraph 9.

The common pattern in these paragraphs is they have the field option "Relative position of paragraph" enabled.
Since this option is not supported in Writer, all of these are mapped to the option "Above/below".

The paragraph 3 has the same field settings except this "Relative position of paragraph" setting is disabled.

Paragraph 9 has the "Paragraph # from marked paragraph" field option plus "Relative position of paragraph" which results in "(i) above" in Word. This is imported incorrectly as "above" in Writer.
Paragraph 3 has only the "Paragraph # from marked paragraph" field option set, which is imported correctly in Writer as "(i)".
-> Writer should have a similar option for the Bookmarks field that gives the referenced bookmarks number from the marked paragraph.

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: a2c3ef6d8108355ce5daf6ff72310ac93ae745f0
CPU threads: 14; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded Jumbo
Comment 1 Dieter 2022-04-09 11:37:41 UTC
I confirm it with

Version: 7.3.2.2 (x64) / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: zh-CN (de_DE); UI: en-GB
Calc: CL