]> granicus.if.org Git - graphviz/commitdiff
anticipate failure from layout
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 3 Apr 2021 19:32:05 +0000 (12:32 -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 c13ab7fb9910e509ae3da19d302b77ec73b63131..e37a00d30212edb897a0d221e356db80fa48793c 100644 (file)
@@ -1048,7 +1048,10 @@ static int fdpLayout(graph_t * g)
     layout_info info;
 
     init_info(g, &info);
-    layout(g, &info);
+    int r = layout(g, &info);
+    if (r != 0) {
+        return r;
+    }
     setClustNodes(g);
     evalPositions(g,g);