From 825a15e645b78d86a76f35d9648c24641aed19fc Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" Date: Mon, 11 Jan 2016 14:59:49 -0500 Subject: [PATCH] Fix edge drawing in fdp to allow other values for splines. The original code was written when there were only line segments and splines. --- lib/fdpgen/layout.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/fdpgen/layout.c b/lib/fdpgen/layout.c index bba7a0064..7b333a6df 100644 --- a/lib/fdpgen/layout.c +++ b/lib/fdpgen/layout.c @@ -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) -- 2.50.1