[Libreoffice-bugs] [Bug 142849] FILEOPEN DOCX: Image partly off page on file open

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jun 15 12:59:36 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=142849

--- Comment #4 from Telesto <telesto at surfxs.nl> ---
Created attachment 172918
  --> https://bugs.documentfoundation.org/attachment.cgi?id=172918&action=edit
Bibisectlog

Bisected to:
author  Miklos Vajna <vmiklos at collabora.com>    2021-05-26 11:56:04 +0200
committer       Miklos Vajna <vmiklos at collabora.com>    2021-05-26 13:29:12
+0200
commit  2f21e4f357ec60450df84ddd858c3cf0a4711b02 (patch)
tree    e422784a36b1f34ef25b1d42738e8c8119db2caa
parent  9ac3b599e65669380ab346cb2bb135a6edc3273a (diff)
tdf#139915 DOCX import: fix anchored obj position with to-char and TEXT_LINE
There were multiple problems here:

- commit 8f1a1092d47947847e1d888b0284e8364c663d1f (tdf#97371 DOCX
import: fix text covered by shape, 2016-01-28) disabled to-char
anchoring for TEXT_LINE (e.g. "alignment top, relative to line") because
changing the anchor type of a TextBox could not be changed, but this has
been implemented in sw/ in the meantime, so it can be dropped

- Now that the anchor type is to-char, we can set the vertical relation
to TEXT_LINE, but Word's positive value is "below line", and ours mean
"towards the top of the page, from the bottom of the line", so we need
to drop the workaround of commit
3303a4c5f21874453e634d84408c50e7a0055a4d (tdf#135153 DOCX import: avoid
line-of-text relation with to-para anchoring, 2021-01-18)

Once these are in place, we can fix the remaining problem by inverting
the vertical position of the shape, which instantly fixes the
overlapping textboxes in the bugdoc.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=2f21e4f357ec60450df84ddd858c3cf0a4711b02

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210615/4e477f9c/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list