]> granicus.if.org Git - graphviz/commitdiff
anticipate failure from fdpLayout
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 3 Apr 2021 19:28:59 +0000 (12:28 -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 29246148090eb32b747ce3ab6c280dec9ff5c760..f7aace78a5519a085bb73eaf4658962f70d9f91f 100644 (file)
@@ -1094,7 +1094,9 @@ void fdp_layout(graph_t * g)
     if (setjmp(jbuf)) {
        return;
     }
-    fdpLayout(g);
+    if (fdpLayout(g) != 0) {
+       return;
+    }
     neato_set_aspect(g);
 
     if (EDGE_TYPE(g) != ET_NONE) fdpSplines (g);