Bug 148550 - FILEOPEN RTF Image anchored to page + Layout in table cell falls out of table
Summary: FILEOPEN RTF Image anchored to page + Layout in table cell falls out of table
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, implementationError
Depends on:
Blocks: RTF-Images layoutInCell
  Show dependency treegraph
 
Reported: 2022-04-13 07:04 UTC by Gabor Kelemen (allotropia)
Modified: 2024-08-24 19:40 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2013 (997.91 KB, application/msword)
2022-04-13 07:04 UTC, Gabor Kelemen (allotropia)
Details
The example file in Word and Writer master (121.70 KB, image/png)
2022-04-13 07:05 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-04-13 07:04:04 UTC
Created attachment 179502 [details]
Example file from Word 2013

Attached RTF file contains an image that is positioned relative to page and to the right of column. The Layout in table cell option is also enabled.
When opened in Writer the image moves out of the table, instead of being slightly vertically below the cells top border it is below the page margin.

1, Open attached file in Word and Writer, compare image vertical position (horizontal looks kinda ok).

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 6f39602ecb9b90795bfd4101273f90b16f17b6d6
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

Started in 6.2 with:

https://git.libreoffice.org/core/+/0c91f8f839d36c8b5af272b1d3c835d2f4af6b65

author	Miklos Vajna <vmiklos@collabora.co.uk>	Mon Jul 16 22:04:02 2018 +0200
committer	Miklos Vajna <vmiklos@collabora.co.uk>	Tue Jul 17 09:03:42 2018 +0200

tdf#81943 sw RTF import: fix missing wrap in background for in-table shape

Before this the image was placed inside the table, but not slightly below the top border and right of the left border, so not perfect just less bad.
Comment 1 Gabor Kelemen (allotropia) 2022-04-13 07:05:43 UTC
Created attachment 179503 [details]
The example file in Word and Writer master
Comment 2 Dieter 2022-04-29 08:49:27 UTC
I confirm it with

Version: 7.3.3.1 (x64) / LibreOffice Community
Build ID: 1688991ca59a3ca1c74bc2176b274fba1b034928
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

in camparison with Word 2016.
Comment 3 Miklos Vajna 2023-10-16 07:13:42 UTC
I'm afraid this never really worked. The timeline I'm aware of is:

- this "started to work" after commit 015fd55c94b7b650ed8e572cafaf3b0f903b01b9 (tdf#96275 RTF import: fix anchor of shapes inside tables, 2016-05-10)

- later serious side effects were discovered and the regression was reported, so 0c91f8f839d36c8b5af272b1d3c835d2f4af6b65 (tdf#81943 sw RTF import: fix missing wrap in background for in-table shape, 2018-07-16) partially reverted things

It makes sense to fix this, but it never worked in a clean way, I think. Adjusting keywords accordingly.