summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Bull2010-12-03 01:37:31 (EST)
committer Fabian Steeg2010-12-03 01:37:31 (EST)
commit8ef5f7689566e9d0b6ede581d0d286ab93ef6439 (patch)
treea46138a1d9b5d9b9cc0b4bfb5c67ba5cc6e3b61f
parenta0a02493b0af245b6ae73f7c5903fc9f297063ec (diff)
downloadorg.eclipse.gef4-8ef5f7689566e9d0b6ede581d0d286ab93ef6439.zip
org.eclipse.gef4-8ef5f7689566e9d0b6ede581d0d286ab93ef6439.tar.gz
org.eclipse.gef4-8ef5f7689566e9d0b6ede581d0d286ab93ef6439.tar.bz2
Initialize the spring layout algorithim when you apply it
-rw-r--r--org.eclipse.zest.layouts/src/org/eclipse/zest/layouts/algorithms/SpringLayoutAlgorithm.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.zest.layouts/src/org/eclipse/zest/layouts/algorithms/SpringLayoutAlgorithm.java b/org.eclipse.zest.layouts/src/org/eclipse/zest/layouts/algorithms/SpringLayoutAlgorithm.java
index 3927189..d25cc62 100644
--- a/org.eclipse.zest.layouts/src/org/eclipse/zest/layouts/algorithms/SpringLayoutAlgorithm.java
+++ b/org.eclipse.zest.layouts/src/org/eclipse/zest/layouts/algorithms/SpringLayoutAlgorithm.java
@@ -186,6 +186,7 @@ public class SpringLayoutAlgorithm implements LayoutAlgorithm {
}
public void applyLayout(boolean clean) {
+ initLayout();
if (!clean)
return;
while (performAnotherNonContinuousIteration()) {