Bug 76277 - Connectors should allow snapping to elements inside a group
Summary: Connectors should allow snapping to elements inside a group
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.1.3.2 release
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 45863 (view as bug list)
Depends on:
Blocks: Connectors
  Show dependency treegraph
 
Reported: 2014-03-17 16:46 UTC by Cristian Magherusan-Stanciu
Modified: 2024-03-29 13:19 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file with group (9.13 KB, application/vnd.oasis.opendocument.graphics)
2019-06-10 06:26 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cristian Magherusan-Stanciu 2014-03-17 16:46:31 UTC
I am creating a document with grouped items in LibreOffice Draw.

Some of the items in a group need to connect to items in another group, like by using arrows.

Currently the UI doesn't support this.

Steps to reproduce:

1. Create 2 groups of 2 rectangles each.

2. Enter the first group and start creating an arrow connector, originating from one of the rectangles.

3. Try to connect it to a rectangle from the other group. Fail! The arrow won't 'snap' to any of those.
Comment 1 Thomas Hackert 2014-04-13 18:03:13 UTC
Hello Cristian, *,
I cannot confirm your issue with LO Version: 4.1.6.1 Build ID: a59ce81388f477fc89db57f0c27f222f31884eb (parallel installed, following the instructions from https://wiki.documentfoundation.org/Installing_in_parallel) with Germanophone lang- as well as helppack under Debian Testing i686, sorry ... :(

What I have done:
1. Draw a rectangle and a circle
2. Grouped them via context menu -> Group
3. Draw a rectangle and a triangle
4. Grouped them like point 2
5. Rightclick on the group with the rectangle and the circle, and selected "Enter Group"
6. Clicked on the dropdown menu right to the icon for "Connector" and selected one with an arrow head
7. Draw the line from the rectangle of group 1 to the one of group 2

This works without any problems :) I see some "x" on the triangle as well as the circle (points, where I cannot connect the connector?), but otherwise it works ... ;)

Did you do anything different from my procedure? If so, would you be so kind to give us a step-by-step description, please? Or would you mind to attach one of these drawings to this bug, please? And would you be so kind to test it with a newer version than 4.1.3.2, please?
TIA
Thomas.
Comment 2 Regina Henschel 2014-04-13 21:14:23 UTC
I can do step 1 to 6. But when I draw a connector from the rectangle in group 1, it will not connect to an object in group 2. And when I leave the group, I cannot grip the connector, because it is inside the group.

So I can confirm the problem. I use LO 4.3 on Windows 7.
Comment 3 Regina Henschel 2014-08-25 12:03:25 UTC
See also https://issues.apache.org/ooo/show_bug.cgi?id=7575
Comment 4 Buovjaga 2014-11-13 09:51:27 UTC
Reproduced, setting as enhancement.

Win 7 64-bit Version: 4.4.0.0.alpha2+
Build ID: b021b5983c62e266b82d9f0c5c6d8d8900553827
TinderBox: Win-x86@42, Branch:master, Time: 2014-11-12_00:19:18
Comment 5 Heiko Tietze 2016-05-02 11:26:50 UTC
I'm not so sure if it makes sense to connect items contained in one group with the children of another. Sounds rather like you don't want to group, actually. 
However doing all the connections first and grouping later has to be persistent,  even after ungrouping. And this "workaround" has no issues here.

Close this bug as WORKSFORME?

Version: 5.2.0.0.alpha0+
Build ID: 6b232aeecc55f1715bc111e636e36a8e24827efb
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-01-26_07:40:04
Locale: de-DE (de_DE)
Comment 6 Heiko Tietze 2016-05-03 15:13:35 UTC
*** Bug 45863 has been marked as a duplicate of this bug. ***
Comment 7 Buovjaga 2019-06-10 06:26:00 UTC
Created attachment 152070 [details]
Example file with group

To make the use case clear, I will attach an example file. This is an experiment from my initial research into recreating the graphics in the OOo Dev guide.

1. Open file
2. Pick any connector tool, try to connect to the circle, targeting any glue point except the leftmost one

The connector always snaps to the left, because that is the leftmost glue point *of the group*

When working with something like this Dev guide project, I would keep these types of grouped shapes in the gallery and pull them in when needed. The ungrouping workaround slows down the work when there are lots of repetitions.
Comment 8 Rizal Muttaqin 2020-01-16 08:12:26 UTC
Hello, supposed I'm wrong. I use VRT Network Equipment (https://extensions.libreoffice.org/extensions/vrt-network-equipment)  to create network topology. The network object itself is a grouped shape actually. I managed to create custom glue point against the network object (said a router) then I would like to rearrange them later but after reopening the file the glue point gone, but the connectors remain in the place. Is it expected or not?
Comment 9 Rizal Muttaqin 2020-01-16 08:14:38 UTC
I dont want to connect to the inside object of group to be honest. Just want to check whether Draw could maintain the glue point in the grouped object or not. I feel so sad if I should go back to Visio to create such diagram.
Comment 10 Buovjaga 2020-01-16 08:30:37 UTC
(In reply to Rizal Muttaqin from comment #9)
> I dont want to connect to the inside object of group to be honest. Just want
> to check whether Draw could maintain the glue point in the grouped object or
> not. I feel so sad if I should go back to Visio to create such diagram.

You don't have to go back to Visio. You just always have to

a) Enter group, create glue point, manipulate connectors, exit group

or

b) Ungroup, create glue point, manipulate connectors, group again
Comment 11 hgh 2023-03-13 12:54:15 UTC
(In reply to Buovjaga from comment #10)
> (In reply to Rizal Muttaqin from comment #9)
> > I dont want to connect to the inside object of group to be honest. Just want
> > to check whether Draw could maintain the glue point in the grouped object or
> > not. I feel so sad if I should go back to Visio to create such diagram.
> 
> You don't have to go back to Visio. You just always have to
> 
> a) Enter group, create glue point, manipulate connectors, exit group
> 
> or
> 
> b) Ungroup, create glue point, manipulate connectors, group again

This workflow b) can be used for a small number of objects and connectors.
If you have some dozen and/or nested groups and a lot of connectors, you will get crazy with ungrouping, connecting, grouping again. And if you want to move the connection to another point inside the group - ungroup ...
Most confusing: the glue points of a circle inside a group are (sometimes only partly) shown, when selecting a connector outside, but you can't connect to them without ungrouping ...