Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 454004

Summary: Wrong last GMF bendpoint in case of target move
Product: [Modeling] Sirius Reporter: Pierre-Charles David <pierre-charles.david>
Component: DiagramAssignee: Florian Barbin <florian.barbin>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: belqassim.djafer, florian.barbin, laurent.redor
Version: 2.0.0Keywords: triaged
Target Milestone: 2.0.2   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 452652    
Bug Blocks:    

Description Pierre-Charles David CLA 2014-12-03 08:34:15 EST
+++ This bug was initially created as a clone of Bug #452652 +++

Since the feature bug 437097, there is a bug on edge when moving the target. The computed intersection, used as last point, is computed from the intersection bewteen a line, from the last point to the anchor on the target node, and the target node. The start of the line should be the second to last point (and not the last point).

See org.eclipse.sirius.diagram.ui.graphical.edit.policies.SetConnectionBendpointsAccordingToExtremityMoveCommmand.adaptPointListAndRefPoints(boolean, Point, boolean, Rectangle, Point, Point, PointList), l. 184
Comment 1 Pierre-Charles David CLA 2014-12-03 08:34:35 EST
Cloned from bug 452652 to backport in Sirius 2.0.2.
Comment 2 Florian Barbin CLA 2014-12-10 05:20:43 EST
Backported into branch 2.0.x
Comment 3 Belqassim Djafer CLA 2014-12-15 05:20:35 EST
Verified with Sirius 2.0.2.201412100936
Comment 4 Pierre-Charles David CLA 2014-12-15 06:44:58 EST
Verified on Sirius 2.0.2.201412100936
Comment 5 Pierre-Charles David CLA 2014-12-16 08:34:41 EST
Available in Sirius 2.0.2.