chiark / gitweb /
elimtrivial rightedge!=leftedge and initialise pass - but still broken
authorian <ian>
Sun, 20 Mar 2005 01:42:15 +0000 (01:42 +0000)
committerian <ian>
Sun, 20 Mar 2005 01:42:15 +0000 (01:42 +0000)
layout/redactgraph.c

index a7945bb1e8f3743514d093deb9359012ad05c0fd..e2ecc61658b9ffc4e8d0bd310f6c997ada9aad43 100644 (file)
@@ -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;