Created attachment 195947 [details] notLayoutInCell_pageLeft_lineBottom.docx: image is laid out from top of line, not bottom This is a follow-up to bug 91632, where this was reported as layoutInCell behaviour. It turns out the same thing happens without being layoutInCell. Line-oriented Center and Bottom behave the same way as Top when anchored inside a table. This is still true for wrapThrough images. Steps to reproduce 1- open notLayoutInCell_pageLeft_lineBottom.docx Note that the image is extending above the table. (It should have it's top over the anchor point, and extend below the table. Ignore the horizontal placement problem.
attachment 195945 [details] notLayoutInCell_pageLeft_lineBottom-mso2010.pdf: how it looks in Word 2010
The conclusion I am reaching is that if either vertical == line or horizontal == character, then all the rules for layoutInCell apply. That is hinted at in MS Word's UI. If you select FROM TOP of line, then it automatically enables layoutInCell, and if you disable layoutInCell, then Line changes to Paragraph. (But that UI hint only happens in one of the four possible places.) So, this re-enforces why compat15 would just ignore layoutInCell and always treat it as true. For proof about horizontal, see bug 162550's attachment 195944 [details] notLayoutInCell_lineFromLeft.doc and PDF attachment 195946 [details].
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/0640a0f673635f861a28d14d21e40599e7a54553 tdf#162551 mso formats: line(vert) or char(hori) forces layoutInCell It will be available in 25.2.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.
*** Bug 162550 has been marked as a duplicate of this bug. ***