]> granicus.if.org Git - graphviz/commitdiff
Fix typo in check for record nodes in flat adjacent edges.
authorEmden R. Gansner <erg@alum.mit.edu>
Mon, 11 Aug 2014 19:40:40 +0000 (15:40 -0400)
committerEmden R. Gansner <erg@alum.mit.edu>
Mon, 11 Aug 2014 19:40:40 +0000 (15:40 -0400)
lib/dotgen/dotsplines.c

index bcbf65d44c16be23189b53180db48788d48de100..110bce38dbec6b803874a45be294cd3358ba4047 100644 (file)
@@ -1185,7 +1185,7 @@ make_flat_adj_edges(graph_t* g, path* P, edge_t** edges, int ind, int cnt, edge_
     static int warned;
 
     tn = agtail(e0), hn = aghead(e0);
-    if ((shapeOf(tn) == SH_RECORD) || (shapeOf(tn) == SH_RECORD)) {
+    if ((shapeOf(tn) == SH_RECORD) || (shapeOf(hn) == SH_RECORD)) {
        if (!warned) {
            warned = 1;
            agerr (AGWARN, "flat edge between adjacent nodes one of which has a record shape - replace records with HTML-like labels\n");