diff options
| author | Alois Zoitl | 2018-09-13 05:46:34 +0000 |
|---|---|---|
| committer | Alois Zoitl | 2018-09-13 19:32:08 +0000 |
| commit | a76e98f056cefb4cc38a4fbc3f94d4d1d3bfdca9 (patch) | |
| tree | 04f8e0a11f60964b52087539a10a628bb8c4819d | |
| parent | 789baa79c03d29a8bb5bffefcc2fb80ad25cc109 (diff) | |
| download | org.eclipse.4diac.ide-a76e98f056cefb4cc38a4fbc3f94d4d1d3bfdca9.tar.gz org.eclipse.4diac.ide-a76e98f056cefb4cc38a4fbc3f94d4d1d3bfdca9.tar.xz org.eclipse.4diac.ide-a76e98f056cefb4cc38a4fbc3f94d4d1d3bfdca9.zip | |
[497979] fixed routing update for 3 segment connections
When fbs where moved to close so that the vertical section of 3 segment
connections would go beyond the destination the recalculation used the
wrong order so that connections where routed very strangely. This is
fixed in this commit.
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=497979
Change-Id: I45b469cf3019c55afe014d1574aaf0ca599859a8
Signed-off-by: Alois Zoitl <alois.zoitl@gmx.at>
| -rw-r--r-- | plugins/org.eclipse.fordiac.ide.gef/src/org/eclipse/fordiac/ide/gef/router/MoveableRouter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.fordiac.ide.gef/src/org/eclipse/fordiac/ide/gef/router/MoveableRouter.java b/plugins/org.eclipse.fordiac.ide.gef/src/org/eclipse/fordiac/ide/gef/router/MoveableRouter.java index b79563cd6a..7a4bfb8aa1 100644 --- a/plugins/org.eclipse.fordiac.ide.gef/src/org/eclipse/fordiac/ide/gef/router/MoveableRouter.java +++ b/plugins/org.eclipse.fordiac.ide.gef/src/org/eclipse/fordiac/ide/gef/router/MoveableRouter.java @@ -88,7 +88,7 @@ public class MoveableRouter extends BendpointConnectionRouter implements Bendpoi if(requires5SegementConnection(sourceP, destP)) { generateInitial5SegmentParams(conn, sourceP, destP); } else if ( sourceP.x + conn.getDx1() > destP.x - MIN_CONNECTION_FB_DISTANCE){ - conn.setDx1(sourceP.x - destP.x - MIN_CONNECTION_FB_DISTANCE); + conn.setDx1(destP.x - sourceP.x - MIN_CONNECTION_FB_DISTANCE); } } else { //we have a five point connection check if we should transform it into a 3 point |
