Download it now!
Bug 133522 - FILEOPEN: DOCX: LayoutInCell: position of textbox incorrect.
Summary: FILEOPEN: DOCX: LayoutInCell: position of textbox incorrect.
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:
Depends on:
Blocks: DOCX-Textbox DOCX-compatibilityMode-15
  Show dependency treegraph
 
Reported: 2020-05-30 10:46 UTC by Justin L
Modified: 2020-12-01 14:21 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
missing-path.docx: from ooxmlexport10 - the number is not positioned correctly. (15.49 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-05-30 10:46 UTC, Justin L
Details
tdf133522_screenshot.png: compare LO and Word with 2010 mode, 2013 mode (47.85 KB, image/png)
2020-05-30 11:04 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2020-05-30 10:46:04 UTC
Created attachment 161424 [details]
missing-path.docx: from ooxmlexport10 - the number is not positioned correctly.

The arrow should be almost touching the number, not an inch below it.

Based on a PDF comparison, I can see that the position of the textbox/number is what is wrong. I am guessing that LayoutInCell=0 indicates a different anchor position should be used.

This document is in 2010 mode.
<w:compatSetting w:name="compatibilityMode" w:val="14"/>

It is worth noting that if compatibilityMode=15 (2013 mode) is set in this document, then Word 2013 is somewhat similar to how LO is currently showing it, although it is only about a 1/2 inch away. Therefore any fix for this should take into account the compatibilityMode. See bug 77794 comment 17 for inspiration for that.

A bibisect is not possible. The textbox was not showing up until LO 5.3 with commit 9d9e5b40c1a6d91323564e60b25ccf04df86db4b
Author: Miklos Vajna on Wed Sep 7 22:17:34 2016 +0200
    tdf#78727 sw: fix missing textbox text when anchored inside flying table
Comment 1 Justin L 2020-05-30 10:52:55 UTC
The 2013 mode version of the document is attachment 161425 [details]
Comment 2 Justin L 2020-05-30 11:04:14 UTC
Created attachment 161426 [details]
tdf133522_screenshot.png: compare LO and Word with 2010 mode, 2013 mode
Comment 3 Dieter 2020-06-03 07:12:13 UTC
I confirm it with

Version: 7.0.0.0.beta1 (x64)
Build ID: 94f789cbb33335b4a511c319542c7bdc31ff3b3c
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

in comparison with Word 2016
Comment 4 NISZ LibreOffice Team 2020-12-01 14:21:07 UTC
The anchor of the text box of "9" is inside a floating table. That has:
- horizontal position: Left of Margin
- vertical position: 0.73 cm from Paragraph
This is imported as a frame with 
- horizontal position: From left by -0.12 cm to Page text area
- vertical position: From top by 0.73 cm to Margin

The text box and the arrow arc are absolutely positioned in Word, those should not be an issue.