From: ian Date: Sun, 20 Mar 2005 01:42:15 +0000 (+0000) Subject: elimtrivial rightedge!=leftedge and initialise pass - but still broken X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=c2ddd28ff0cdbaa93c56cc136f00bc11155eacd7;p=trains.git elimtrivial rightedge!=leftedge and initialise pass - but still broken --- diff --git a/layout/redactgraph.c b/layout/redactgraph.c index a7945bb..e2ecc61 100644 --- a/layout/redactgraph.c +++ b/layout/redactgraph.c @@ -113,7 +113,7 @@ static void node_surely_orphaned(Node *node) { /*---------- operations ----------*/ static void extendsplits(void) { - int pass, rightside, n; + int pass=0, rightside, n; Node *node; EdgeEnd *leftedge, *rightedge; @@ -205,7 +205,7 @@ static void elimtrivial(void) { continue; } leftedge= node->sides[0].head; - rightedge= node->sides[0].head; + rightedge= node->sides[1].head; if (leftedge->edge->subseg != rightedge->edge->subseg) { trace("no, (sub)segments differ\n"); continue;