Bug 155377 - Rounded rectangle control point can't be adjusted properly in the dialog
Summary: Rounded rectangle control point can't be adjusted properly in the dialog
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
5.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, implementationError
Depends on:
Blocks: Shapes
  Show dependency treegraph
 
Reported: 2023-05-17 20:50 UTC by Aron Budea
Modified: 2023-05-19 12:42 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2023-05-17 20:50:03 UTC
- In Writer, insert a rounded rectangle,
- Move the control point all the way to the right, so the shape has half-circle ends, like a pill,
- Open right click -> Position and Size..., switch to Slant & Corner Radius, and note the Control Point 1 value (for me it's 0.82 cm, but I've seen different values as well),
- Leave dialog, move the control point to some other point,
- Open the dialog again, and enter the previous value as Control Point 1's X value.

=> The ends don't become half-circles.

Another way to test this is by opening the dialog at eg. the default size, and entering a large number as Control Point 1's X, eg. 100 cm, then pressing OK.

=> The ends should become half-circles, but they don't.

It seems the value entry field has incorrect limits.

Observed using LO 7.6.0.0.alpha0+ (2721520ca37654056c3d509657c50ee42e3dcae4), 5.1.0.3 / Ubuntu.
In 5.0.0.5 the dialog tab is different, marking this as implementationError, and adding bibisectRequest, perhaps the commit that changed the dialog can be identified.
Comment 1 Stéphane Guillou (stragu) 2023-05-19 10:41:32 UTC
Reproduced in:

Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 1349f140fcc49e5da78482ca3db09663ccdae0a9
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Same in:

Version: 6.0.0.3
Build ID: 64a0f66915f38c6217de274f0aa8e15618924765
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk2; 
Locale: en-AU (en_AU.UTF-8); Calc: group

Caolán, I see you worked on this dialog for 5.1: https://wiki.documentfoundation.org/ReleaseNotes/5.1#View/Edit_Control_Points

Any idea?
Comment 2 Regina Henschel 2023-05-19 12:42:58 UTC
Reason is wrong handling of mm <-> twips conversions in Writer.

The field shows the "twips" value of the object, but names it "mm". 
If the handle distance is in reality 40mm, for example, then 40 * 72/127 = 22.68 and that value is shown in the field.

The problem might be deeper than fixing the dialog. Conversion twips<->mm bugs are for example bug 127207 and 100972.