| author | Ian Bull | 2010-12-03 01:37:31 (EST) |
|---|---|---|
| committer | Fabian Steeg | 2010-12-03 01:37:31 (EST) |
| commit | 8ef5f7689566e9d0b6ede581d0d286ab93ef6439 (patch) (side-by-side diff) | |
| tree | a46138a1d9b5d9b9cc0b4bfb5c67ba5cc6e3b61f | |
| parent | a0a02493b0af245b6ae73f7c5903fc9f297063ec (diff) | |
| download | org.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.java | 1 |
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()) { |

