summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Seear2012-05-17 15:56:38 (EDT)
committer Fabian Steeg2012-05-17 15:56:38 (EDT)
commit973bfa07b7f87ea82b1bd6cabdc79eba34b76fc5 (patch)
treeea6939a6b0ee0882ceaa0c58c4ed07e3e10aea6a
parentf08f0096abe066b8d8dcb7852c0a6e5409f2a0bd (diff)
downloadorg.eclipse.gef-973bfa07b7f87ea82b1bd6cabdc79eba34b76fc5.zip
org.eclipse.gef-973bfa07b7f87ea82b1bd6cabdc79eba34b76fc5.tar.gz
org.eclipse.gef-973bfa07b7f87ea82b1bd6cabdc79eba34b76fc5.tar.bz2
[379805] Fix looped connection label placement when zooming out
-rw-r--r--org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphConnection.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphConnection.java b/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphConnection.java
index 75060a5..5f45ceb 100644
--- a/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphConnection.java
+++ b/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphConnection.java
@@ -639,6 +639,7 @@ public class GraphConnection extends GraphItem {
Point p = Point.SINGLETON;
p.x = getConnection().getPoints().getPoint(getIndex()).x;
p.y = (int) (getConnection().getPoints().getPoint(getIndex()).y - (curveDepth * 1.5));
+ getConnection().translateToAbsolute(p);
return p;
}
};