Bug 144591

Summary: Value for logheight in custom-shape is wrong in Writer
Product: LibreOffice Reporter: Regina Henschel <rb.henschel>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: ilmari.lauhakangas
Priority: medium    
Version: 7.3.0.0 alpha0+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 123648    
Attachments: Object with fixed rectangle height
Screenshot with Draw and Writer side-by-side

Description Regina Henschel 2021-09-18 16:06:59 UTC
Created attachment 175107 [details]
Object with fixed rectangle height

Open attached Draw document. It has an object, where the upper rectangle has a fixed height of 1cm. The object is intended to be uses with a heading in the upper rectangle and body text in the lower rectangle.

Copy the object and insert it into a text document in Writer. Notice, that the upper rectangle has changed its height.

For to get a fixed height for the upper rectangle, the y-coordinate where the upper rectangle ends and the lower rectangle starts is calculated as
draw:formula="1000/logheight*height"

ODF 1.3 specifies in 19.171 draw:formula,
"logheight | The height in 1/100th mm as specified by the svg:height 19.543 attribute is used."
Comment 1 Regina Henschel 2021-09-18 16:07:38 UTC
Created attachment 175108 [details]
Screenshot with Draw and Writer side-by-side
Comment 2 Buovjaga 2022-10-13 11:31:26 UTC
Repro

Arch Linux 64-bit
Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: b45867766184ad1200df4183dab537fac9e83ea2
CPU threads: 8; OS: Linux 5.19; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 13 October 2022