"Copy" bendpoints into another FreeFormConnection [message #1319639] |
Mon, 28 April 2014 09:44 |
Soeren M Messages: 77 Registered: September 2011 |
Member |
|
|
Hey all,
I came across a behaviour I've never noticed before.
If I create a FreeFormConnection and add the bendpoints from another FreeFormConnection into it, the bendpoints from the first one are deleted afterwards.
AddConnectionContext addContext = new AddConnectionContext(start, end);
FreeFormConnection newCon = (FreeFormConnection) getFeatureProvider().addIfPossible(addContext);
FreeFormConnection tc = (FreeFormConnection) c;
System.out.println(tc.getBendpoints().size()); //returns 2
newCon.getBendpoints().addAll(tc.getBendpoints());
System.out.println(tc.getBendpoints().size()); //returns 0
Am I doing something wrong?
[Updated on: Mon, 28 April 2014 09:46] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05465 seconds