Bug 148172 - FILEOPEN DOCX Ref field incorrect with "# of paragraph in relative context" and "Relative position of paragraph" enabled
Summary: FILEOPEN DOCX Ref field incorrect with "# of paragraph in relative context" a...
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:
: 148555 (view as bug list)
Depends on:
Blocks: DOCX-Fields
  Show dependency treegraph
 
Reported: 2022-03-25 07:58 UTC by Gabor Kelemen (allotropia)
Modified: 2022-07-28 16:26 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
The paragraph numbered 8 in Word and Wrier (175.15 KB, image/png)
2022-03-25 07:58 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:58:39 UTC
Created attachment 179095 [details]
The paragraph numbered 8 in Word and Wrier

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 8.

The common pattern in the paragraphs 8-10 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 2 has the same field settings except this "Relative position of paragraph" setting is disabled.

Paragraph 8 has "# of paragraph in relative context" plus "Relative position of paragraph" which results in "2.1 above" in Word. This is imported incorrectly as "above" in Writer.
Paragraph 2 has only the "# of paragraph in relative context" field option enabled, which results in "2.2.1 (i)" in Word. This is imported correctly in Writer.
-> Writer should have a similar option for the Bookmarks field that gives the referenced bookmarks position in relative terms.

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:36:31 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
Comment 2 raal 2022-07-28 16:26:25 UTC
*** Bug 148555 has been marked as a duplicate of this bug. ***