Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormgolubev2015-07-21 16:36:24 -0400
committermgolubev2015-07-21 16:36:24 -0400
commit2dcbcef3d826ebdf803aeb8bcfb1ce5620d8098d (patch)
tree6b2dc949867f80953d759daa67a4c1c97fa9f276
parent335e16fe72daf1c1752808279a2969c92fabacc1 (diff)
downloadorg.eclipse.gmf-tooling-2dcbcef3d826ebdf803aeb8bcfb1ce5620d8098d.tar.gz
org.eclipse.gmf-tooling-2dcbcef3d826ebdf803aeb8bcfb1ce5620d8098d.tar.xz
org.eclipse.gmf-tooling-2dcbcef3d826ebdf803aeb8bcfb1ce5620d8098d.zip
Backport for #468036 from
http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?h=bugs/442157-luna-1.0.2-linksLF&id=669f25030a9f0175191a060f5d54df34bf5f8c15 Change-Id: Idb5081e1883c1a750a86be322b9b789b7401ecde
-rw-r--r--plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/linklf/router/LinkLFRectilinearRouter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/linklf/router/LinkLFRectilinearRouter.java b/plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/linklf/router/LinkLFRectilinearRouter.java
index 6b1ad514a..561aa9145 100644
--- a/plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/linklf/router/LinkLFRectilinearRouter.java
+++ b/plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/linklf/router/LinkLFRectilinearRouter.java
@@ -96,8 +96,8 @@ public class LinkLFRectilinearRouter extends RectilinearRouter2 implements
public void routeLine(Connection conn, int nestedRoutingDepth,
PointList newLine) {
if (nestedRoutingDepth == 0 && newLine.size() >= 2) {
- Point sourceLoc = conn.getSourceAnchor().getReferencePoint();
- Point targetLoc = conn.getTargetAnchor().getReferencePoint();
+ Point sourceLoc = conn.getSourceAnchor().getReferencePoint().getCopy();
+ Point targetLoc = conn.getTargetAnchor().getReferencePoint().getCopy();
conn.translateToRelative(sourceLoc);
conn.translateToRelative(targetLoc);

Back to the top