From: Emden Gansner Date: Mon, 19 Mar 2012 14:09:45 +0000 (-0400) Subject: Fix bug 2211 and warn about orthogonal edges not handling edge labels. X-Git-Tag: LAST_LIBGRAPH~32^2~458 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54c60fdb3665a26beb3d89f88a48835a3d83007e;p=graphviz Fix bug 2211 and warn about orthogonal edges not handling edge labels. --- diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index a573c722a..0e69e8e5a 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -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); } } } diff --git a/lib/ortho/ortho.c b/lib/ortho/ortho.c index b8cfbdd43..e0ddbe2c1 100644 --- a/lib/ortho/ortho.c +++ b/lib/ortho/ortho.c @@ -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