Bug 160049 - FILEOPEN DOCX: left/right horizontal should be anchored to PRINT_AREA, not FRAME
Summary: FILEOPEN DOCX: left/right horizontal should be anchored to PRINT_AREA, not FRAME
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Justin L
URL:
Whiteboard: compatibilityMode12 target:24.8.0
Keywords: filter:docx
Depends on:
Blocks: DOCX-Anchor-and-Text-Wrap DOCX-compatibilityMode-15
  Show dependency treegraph
 
Reported: 2024-03-05 15:51 UTC by Justin L
Modified: 2024-03-16 13:20 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
anchoredToCOLUMN.docx: created by Word 2003 (75.37 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-03-05 15:51 UTC, Justin L
Details
anchoredToCOLUMN_mso2003.pdf: how it looks in the authoring program (50.62 KB, application/pdf)
2024-03-05 15:54 UTC, Justin L
Details
anchoredToCOLUMN_lo24.8.pdf: the image placement matches "margin", not "column" placement (38.93 KB, application/pdf)
2024-03-05 15:56 UTC, Justin L
Details
anchoredToCOLUMN2019.docx: in this compat15 version, column and margin should be treated the same (77.17 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-03-05 17:27 UTC, Justin L
Details
anchoredToCOLUMNcompat15_mso2019.pdf (60.58 KB, application/pdf)
2024-03-05 17:29 UTC, Justin L
Details
anchoredToCOLUMNcompat14_mso2019.pdf: only changing the settings to compatibilityMode 14 causes it to look like the 2003 version. (60.58 KB, application/pdf)
2024-03-05 17:30 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2024-03-05 15:51:37 UTC
Created attachment 192971 [details]
anchoredToCOLUMN.docx: created by Word 2003

At least for LEFT and RIGHT horizontal, a "column" oriented image should be placed relative to the paragraph margins ("Paragraph text area", aka PRINT_AREA), and not to the "Entire paragraph area" (aka FRAME).

I noticed that this is NOT true for CENTER, and "absolute position" relative to a column also ignores the margins. Sigh. So much for consistency.

At least this doesn't seem to be affected by background/foreground or other wrapping types.

P.S. There are lots of other things wrong with this document. Missing border around images, paragraph text in the wrong spot with no background color...
Comment 1 Justin L 2024-03-05 15:54:50 UTC
Created attachment 192972 [details]
anchoredToCOLUMN_mso2003.pdf: how it looks in the authoring program
Comment 2 Justin L 2024-03-05 15:56:38 UTC
Created attachment 192973 [details]
anchoredToCOLUMN_lo24.8.pdf: the image placement matches "margin", not "column" placement
Comment 3 Justin L 2024-03-05 17:27:47 UTC
Created attachment 192979 [details]
anchoredToCOLUMN2019.docx: in this compat15 version, column and margin should be treated the same
Comment 4 Justin L 2024-03-05 17:29:39 UTC
Created attachment 192980 [details]
anchoredToCOLUMNcompat15_mso2019.pdf
Comment 5 Justin L 2024-03-05 17:30:57 UTC
Created attachment 192981 [details]
anchoredToCOLUMNcompat14_mso2019.pdf: only changing the settings to compatibilityMode 14 causes it to look like the 2003 version.
Comment 6 Commit Notification 2024-03-06 10:22:56 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/e0ef7d54b4e4ccbaaada5d2c4a42ba41d961ea69

tdf#160049 oox import: use margins with left/right HoriOrientRelation

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 Commit Notification 2024-03-06 10:24:59 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/eacf8dc7ab850f2d00bd4b327f830c55cf2a0d92

tdf#160049 dml import: use margins with left/right HoriOrientRelation

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Commit Notification 2024-03-06 10:28:01 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/3aeaee800f675a5f733e06bb4ea73909570f9004

tdf#160049 doc import: use margins with left/right HoriOrientRelation

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 9 Commit Notification 2024-03-07 01:21:32 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/77980d4375b270f328afe1dd90e96e2e31fd498d

tdf#160049 dml shape import: use margins with left/right HoriOrientRel

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 10 Commit Notification 2024-03-07 03:24:44 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/b0f8b695ef25dfd24416afe36b26d7d4f41c40a9

tdf#160049 full unit test: use margins with left/right HoriOrientRel

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.