Bug 146488 - Callout does not snap to the object
Summary: Callout does not snap to the object
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.4.3.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: Shape-Points
  Show dependency treegraph
 
Reported: 2021-12-30 16:22 UTC by bnacht
Modified: 2023-05-30 12:37 UTC (History)
2 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 bnacht 2021-12-30 16:22:12 UTC
Description:
I create a rectangle. Then I create a legend object. (A other version of a legend looks like a comic speech bubble.) This legend object has a line to point to the related object. But this line does not 'snap' at the base object. (My rectangle, see above)
So every time I adjust the rectangle, I have to adjust the connection line to the legend object.

If I use an other object (circle, ellipse, and so on) as caption object and connect this with a connector line, this snaps on both ends to the objects

Steps to Reproduce:
Eg.:
1. Create a rectangle
2. Create a legend object (Speech bubble)
3. Try to snap-in the connection line form the speech bubble to the rectangle

Actual Results:
There is no snapin possible. If you move one of the objects you have to adjust the connection line.

Expected Results:
Snapin line a connection line.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
No further information
Comment 1 LeroyG 2021-12-30 19:58:15 UTC
Please copy and share the information from menu Help - About LibreOffice.
Comment 2 bnacht 2021-12-30 21:36:45 UTC
(In reply to LeroyG from comment #1)
> Please copy and share the information from menu Help - About LibreOffice.

If this is necessary when create a enhancement request ...


Version: 7.1.4.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 4; OS: Linux 5.3; UI render: default; VCL: kf5
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded
Comment 3 Heiko Tietze 2023-05-30 08:02:49 UTC
What exactly do you mean with speech bubble? I can add a "cloud" from symbolic shapes and connect this with any other shapes.

And "snap-in the connection" is also not clear. Snapping means you drag an object and some points are "magnetic"; snap lines and page margin by default object frames/points optional. The connector line uses so called glue points, see https://help.libreoffice.org/7.5/en-US/text/simpress/guide/gluepoints.html
Comment 4 bnacht 2023-05-30 08:27:35 UTC
(In reply to LeroyG from comment #1)
> Please copy and share the information from menu Help - About LibreOffice.

Version: 7.4.3.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 4; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded
Comment 5 bnacht 2023-05-30 08:37:44 UTC
(In reply to Heiko Tietze from comment #3)
> What exactly do you mean with speech bubble?
Ok, the english documentation name it 'callouts'

> And "snap-in the connection" is also not clear. Snapping means you drag an
> object and some points are "magnetic";
Exact. Create a object and use a connector line. The endpoint of the line snap to the glue point of the object. But the connector line of the 'callout' object does not snap to the glue point.

So, if I adjust the position of a object I have to correct the corresponding callout object. (resp. the connection line of the callout object)
Comment 6 Heiko Tietze 2023-05-30 08:48:31 UTC
Regina, are there good reasons to not glue the connection lines of callouts?
Comment 7 Regina Henschel 2023-05-30 12:25:38 UTC
A connector is the element <draw:connector> in markup. It has the special attributes draw:start-shape, draw:start-glue-point, draw:end-shape and draw:end-glue-point. These attributes determine a relation ship to other shapes. These attributes are specific for the <draw:connector> element and not available for other kind of shapes.

Handles in custom shape callouts or the tail tip of the classical callout are defined relative to the shapes rectangle, which has the text. There exists no attribute to describe a relationship to another shape.

Therefore it is principle impossible to glue a handle or a tail tip to a glue point.

Changing the current behavior would require changing the ODF standard. I would vote against doing it for custom shape callouts, because custom shapes are designed to be compatible with shapes of MS Office. I could imagine adding such feature to the classical callouts. But who will implement it?


Moving a callout together with the object, to which it points, could be solved by grouping them. But there is still the problem of using glue points of objects, which are inside a group (bug 76277, bug 106621).
Comment 8 Heiko Tietze 2023-05-30 12:37:07 UTC
Taking Reginas comment to resolve the report as WF. The workaround is to simply use two shapes, the cloud serves well as speech bubble, and to add a connector manually.