]> granicus.if.org Git - graphviz/commitdiff
Fix bug 2217
authorEmden Gansner <erg@research.att.com>
Mon, 16 Apr 2012 18:31:37 +0000 (14:31 -0400)
committerEmden Gansner <erg@research.att.com>
Mon, 16 Apr 2012 18:31:37 +0000 (14:31 -0400)
doc/info/attrs.html
doc/infosrc/attrs
lib/dotgen/sameport.c

index f7cd5778d294c0c3ce4e3d46844e8ffb8b60c783..3b88e6f072b87b89647256b8b6f8f45a9caa6d84 100644 (file)
@@ -1640,12 +1640,12 @@ This field indicates which graph component uses the attribute.
 
 <DT><A NAME=d:samehead HREF=#a:samehead><STRONG>samehead</STRONG></A>
 <DD>  Edges with the same head and the same <B>samehead</B> value are aimed
-  at the same point on the head.
+  at the same point on the head. This has no effect on loops.
   See <A HREF=#h:undir_note>limitation</A>.
 
 <DT><A NAME=d:sametail HREF=#a:sametail><STRONG>sametail</STRONG></A>
 <DD>  Edges with the same tail and the same <B>sametail</B> value are aimed
-  at the same point on the tail.
+  at the same point on the tail. This has no effect on loops.
   See <A HREF=#h:undir_note>limitation</A>.
 
 <DT><A NAME=d:samplepoints HREF=#a:samplepoints><STRONG>samplepoints</STRONG></A>
index b87998d5f90cdb98dd2541b9f20968b2f63cf864..6ac5182ffc8e3075405a865423edbb7649c4b692 100644 (file)
@@ -1060,11 +1060,11 @@ If 90, set drawing orientation to landscape.
 Causes the final layout to be rotated counter-clockwise by the specified number of degrees.
 :samehead:E:string:"";  dot
 Edges with the same head and the same <B>samehead</B> value are aimed
-at the same point on the head.
+at the same point on the head. This has no effect on loops.
 See <A HREF=#h:undir_note>limitation</A>.
 :sametail:E:string:"";  dot
 Edges with the same tail and the same <B>sametail</B> value are aimed
-at the same point on the tail.
+at the same point on the tail. This has no effect on loops.
 See <A HREF=#h:undir_note>limitation</A>.
 :samplepoints:N:int:8(output)/20(overlap and image maps);
 If the input graph defines the <A HREF=#d:vertices><B>vertices</B></A>
index 5adc75273185cce6896d41c34cf2bbd4080d6446..f3dc765a452bfe3080cd5335c0af7e8fd754dcf8 100644 (file)
@@ -53,6 +53,7 @@ void dot_sameports(graph_t * g)
     for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
        n_same = 0;
        for (e = agfstedge(g, n); e; e = agnxtedge(g, e, n)) {
+           if (aghead(e) == agtail(e)) continue;  /* Don't support same* for loops */
            if (aghead(e) == n && E_samehead &&
 #ifndef WITH_CGRAPH
                (id = agxget(e, E_samehead->index))[0])