camillem / evoluspencil

Automatically exported from code.google.com/p/evoluspencil
0 stars 0 forks source link

Connector enpoints wrong after a copy/paste #537

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add two shapes and connect with a connector
2. Select the shapes and connector
3. Optionally group the selection
4. Copy the selection/group
5. Paste a new copy

What is the expected output?
The pasted connector is connected to the new (pasted) shapes

What do you see instead?
The pasted connector is connected to the old (source) shapes

What version of the product are you using? On what operating system?
Version 2.0.3 on Windows XP.

Please provide any additional information below.
When working with a selection rather than a group, it may look like the 
connectors just didn't copy, when in fact, they are overlapping the original 
connectors.  When using a group, you can see that there is something odd 
happening because the group expands around where the original connectors were.  
To fix you have to ungroup, make sure you move the connectors to above the old 
group so you can select them, move their endpoints, and regroup.

An apparent solution is to use some logic like this:  When a connector is 
pasted, if a connected shape was also copy-pasted, then the connector endpoint 
should be changed to the new shape (for each endpoint/shape).

Original issue reported on code.google.com by dgasa...@gmail.com on 6 Feb 2013 at 7:20