]> granicus.if.org Git - graphviz/commitdiff
Fix edge drawing in fdp to allow other values for splines. The original code was...
authorEmden R. Gansner <erg@emdenrg.net>
Mon, 11 Jan 2016 19:59:49 +0000 (14:59 -0500)
committerEmden R. Gansner <erg@emdenrg.net>
Mon, 11 Jan 2016 19:59:49 +0000 (14:59 -0500)
lib/fdpgen/layout.c

index bba7a006436e2eef82b6842212bdbacd011f7287..7b333a6df6c3956cc001c371a68aeb3bce2633e7 100644 (file)
@@ -1094,7 +1094,7 @@ fdpSplines (graph_t * g)
     int trySplines = 0;
     int et = EDGE_TYPE(g);
 
-    if (et != ET_LINE) {
+    if (et > ET_ORTHO) {
        if (et == ET_COMPOUND) {
            trySplines = splineEdges(g, compoundEdges, ET_SPLINE);
            /* When doing the edges again, accept edges done by compoundEdges */
@@ -1105,6 +1105,7 @@ fdpSplines (graph_t * g)
            if (HAS_CLUST_EDGE(g)) {
                agerr(AGWARN,
                      "splines and cluster edges not supported - using line segments\n");
+               et = ET_LINE;
            } else {
                spline_edges1(g, et);
            }
@@ -1112,7 +1113,7 @@ fdpSplines (graph_t * g)
        Nop = 0;
     }
     if (State < GVSPLINES)
-       spline_edges1(g, ET_LINE);
+       spline_edges1(g, et);
 }
 
 void fdp_layout(graph_t * g)