Lines do not glue to shapes

I am trying to get lines to snap to shapes in Draw.

As a test I have a diagram with one rectangle and one line.

In Tools → Options → LibreOffice Draw → Grid I have checked the box Snap to object points.

In View → Snap guides → Snap to object points is clicked.

But when I try and move the end point of a line to a corner of a rectangle it does not snap nor glue.

Any idea what I am doing wrong? File attached.

test.odg

AFAIK, only connectors can be glued to others elements and remain connected when you move shapes. You should then use a connector to attach it to one or two shapes (depending on the need to attach the connector on both ends). The connector tool is loated in the bottom toolbar.

The second problem is connectors can be attached only to the middle of the rectangle sides by default. To attach a connector to a corner, you must add a new glue point in a corner with Edit>Glue Points.

After that add your “line” as a connector. When you hover the tool near a shape, the glue points become visible. Click on one of them and drag the connector to its target end. Release mouse button.

To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!