]> granicus.if.org Git - graphviz/commitdiff
fixed drift causing adjust.c to fail to compile --wuth-cgraph
authorellson <devnull@localhost>
Thu, 12 Mar 2009 14:41:42 +0000 (14:41 +0000)
committerellson <devnull@localhost>
Thu, 12 Mar 2009 14:41:42 +0000 (14:41 +0000)
lib/neatogen/adjust.c

index 490fcae2ea5b11576b61e8112fea7c5448887a33..334b54bd2fe45fdda7b8d3d3842da9137cbdb465 100644 (file)
@@ -715,8 +715,12 @@ SparseMatrix makeMatrix(Agraph_t * g, int dim)
        row = ND_id(n);
        for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
            I[i] = row;
-           J[i] = ND_id(e->head);
+           J[i] = ND_id(aghead(e));
+#ifndef WITH_CGRAPH
            if (!sym || (sscanf(agxget(e, sym->index), "%lf", &v) != 1))
+#else
+           if (!sym || (sscanf(agxget(e, sym), "%lf", &v) != 1))
+#endif
                v = 1;
            val[i] = v;
            i++;