From 63c7b54ca8a55514dacbd3444f5c2dc6c0661383 Mon Sep 17 00:00:00 2001 From: Tim Dwyer Date: Wed, 12 Jul 2006 02:26:13 +0000 Subject: Added layout button and ideal connector length spinbox to connector toolbar (bzr r1395) --- src/graphlayout/graphlayout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graphlayout/graphlayout.cpp') diff --git a/src/graphlayout/graphlayout.cpp b/src/graphlayout/graphlayout.cpp index 42b867a33..69d26120d 100644 --- a/src/graphlayout/graphlayout.cpp +++ b/src/graphlayout/graphlayout.cpp @@ -59,7 +59,7 @@ void filterConnectors(GSList const *const items, list &filtered) { * connectors between them, and uses graph layout techniques to find * a nice layout */ -void graphlayout(GSList const *const items) { +void graphlayout(GSList const *const items, double edgeLength) { if(!items) { return; } @@ -124,7 +124,7 @@ void graphlayout(GSList const *const items) { double eweights[E]; fill(eweights,eweights+E,1); - ConstrainedMajorizationLayout alg(rs,es,eweights,width/n); + ConstrainedMajorizationLayout alg(rs,es,eweights,edgeLength); alg.run(); for (list::iterator it(selected.begin()); -- cgit v1.2.3