]> granicus.if.org Git - graphviz/commitdiff
add a return value to fdpLayout
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 3 Apr 2021 19:27:56 +0000 (12:27 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 10 Apr 2021 01:26:32 +0000 (18:26 -0700)
Related to #1801.

lib/fdpgen/layout.c

index 3c2c65d548d46bbd3108aaa1d8dcaca0f17e124b..29246148090eb32b747ce3ab6c280dec9ff5c760 100644 (file)
@@ -1039,7 +1039,7 @@ static void fdp_init_graph(Agraph_t * g)
     fdp_init_node_edge(g);
 }
 
-static void fdpLayout(graph_t * g)
+static int fdpLayout(graph_t * g)
 {
     layout_info info;
 
@@ -1053,6 +1053,8 @@ static void fdpLayout(graph_t * g)
      * On return from spline drawing, all bounding boxes should be correct.
      */
     setBB(g);
+
+    return 0;
 }
 
 static void