Bug 144591 - Value for logheight in custom-shape is wrong in Writer
Summary: Value for logheight in custom-shape is wrong in Writer
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.3.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Shapes-Custom
  Show dependency treegraph
 
Reported: 2021-09-18 16:06 UTC by Regina Henschel
Modified: 2024-09-30 09:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Object with fixed rectangle height (11.12 KB, application/vnd.oasis.opendocument.graphics)
2021-09-18 16:06 UTC, Regina Henschel
Details
Screenshot with Draw and Writer side-by-side (21.19 KB, image/png)
2021-09-18 16:07 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
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
Comment 3 Sophie Sipasseuth 2024-09-30 09:11:38 UTC
Repro:

Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded

Version: 7.2.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: ff2ba77f22b2e96f96f5537aec1705956b47583d
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: en-US
Calc: threaded

Version: 7.1.0.0.alpha1+ (x64)
Build ID: 738bcf5e9a8c443d60c29c3a8068e8c16c72638a
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: en-US
Calc: threaded

Version: 7.0.0.0.alpha1+ (x64)
Build ID: 574c57090642347980d2395e1e183cc7b5c171ad
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: en-US
Calc: threaded

Version: 6.0.0.0.alpha1+
Build ID: 6eeac3539ea4cac32d126c5e24141f262eb5a4d9
CPU threads: 8; OS: Windows 10.0; UI render: GL; 
Locale: fr-FR (fr_FR); Calc: group threaded

Version: 5.4.0.0.alpha1+
Build ID: 9feb7f7039a3b59974cbf266922177e961a52dd1
CPU threads: 8; OS: Windows 6.19; UI render: GL; 
Locale: fr-FR (fr_FR); Calc: group