]> granicus.if.org Git - graphviz/commitdiff
Fix bug 2211 and warn about orthogonal edges not handling edge labels.
authorEmden Gansner <erg@research.att.com>
Mon, 19 Mar 2012 14:09:45 +0000 (10:09 -0400)
committerEmden Gansner <erg@research.att.com>
Mon, 19 Mar 2012 14:09:45 +0000 (10:09 -0400)
lib/dotgen/dotsplines.c
lib/ortho/ortho.c

index a573c722a0100ce332c8f7f9268e3e3727579908..0e69e8e5a051af7be3a5d37a77669e833c33ae01 100644 (file)
@@ -252,7 +252,7 @@ setEdgeLabelPos (graph_t * g)
            else if ((l = ND_label(n))) {// label of regular edge
                place_vnlabel(n);
            }
-           updateBB(g, l);
+           if (l) updateBB(g, l);
        }
     }
 }
index b8cfbdd43a8554f3f23d477590fa0873165c9313..e0ddbe2c1864c6ef8a44055b12ce4da308e0e622 100644 (file)
@@ -1284,6 +1284,10 @@ orthoEdges (Agraph_t* g, int doLbls)
        }
     }
 #endif
+    if (doLbls) {
+       agerr(AGWARN, "Orthogonal edges do not currently handle edge labels. Try using xlabels.\n");
+       doLbls = 0;
+    }
     mp = mkMaze (g, doLbls);
     sg = mp->sg;
 #ifdef DEBUG