Bug 161714

Summary: FILEOPEN DOCX Grouped shape vertical position incorrect if set to "Below line"
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: miguelangelrv
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 136328    
Attachments: Example file from Word 2016
The position settings of the grouped shape in Word and Writer

Description Gabor Kelemen (allotropia) 2024-06-20 12:56:52 UTC
Created attachment 194855 [details]
Example file from Word 2016

Attached example file contains some text and a grouped shape whose vertical position is set as Absolute position of 0.35 cm "Below line".

In Writer it opens somewhat closer to the top of the page than in Word, so it covers more of the right-aligned XXX characters.

1. Open attached file
-> Grouped shape covers the text above it more than in Word.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d7aeaeafc32f78ca38942868f965bae0e6c376b1
CPU threads: 14; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: default

and in older versions as well, it used to be differently bad before 6.0 or so.

Setting is imported as "From bottom" 0.35 cm to "Line of text".
However, if I change it to be -0.35 cm, it seems to jump to the correct location.
Comment 1 Gabor Kelemen (allotropia) 2024-06-20 12:57:34 UTC
Created attachment 194856 [details]
The position settings of the grouped shape in Word and Writer
Comment 2 m_a_riosv 2024-06-21 01:17:16 UTC
Reproducible with
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d7aeaeafc32f78ca38942868f965bae0e6c376b1
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

Inherited form AOo

Some improvement had happened, similar to the result with dev version
Versión: 5.4.7.2
Id. de compilación: c838ef25c16710f8838b1faec480ebba495259d0
Subprocs. CPU: 16; SO: Windows 6.2; Repres. IU: predet.; 
Configuración regional: es-ES (es_ES); Calc: CL