]> granicus.if.org Git - graphviz/commitdiff
anticipate failure from assignTracks
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Apr 2021 02:54:29 +0000 (19:54 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 14 May 2021 00:03:36 +0000 (17:03 -0700)
Related to #1801.

lib/ortho/ortho.c

index f760d13b3bd9fa8f68434ff0f6d16da15eeeca42..b7bfe7d6dacf9794b77efdb959023b686b693b17 100644 (file)
@@ -1338,7 +1338,8 @@ orthoEdges (Agraph_t* g, int doLbls)
     assignSegs (n_edges, route_list, mp);
     if (setjmp(jbuf))
        goto orthofinish;
-    assignTracks (mp);
+    if (assignTracks(mp) != 0)
+       goto orthofinish;
 #ifdef DEBUG
     if (odb_flags & ODB_ROUTE) emitGraph (stderr, mp, n_edges, route_list, es);
 #endif