[Lemon-commits] [lemon_svn] alpar: r2561 - hugo/trunk/lemon

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:53:34 CET 2006


Author: alpar
Date: Tue Feb 21 09:48:11 2006
New Revision: 2561

Modified:
   hugo/trunk/lemon/graph_to_eps.h

Log:
Fix bug #26: Check if an edge is a loop and do not draw then

Modified: hugo/trunk/lemon/graph_to_eps.h
==============================================================================
--- hugo/trunk/lemon/graph_to_eps.h	(original)
+++ hugo/trunk/lemon/graph_to_eps.h	Tue Feb 21 09:48:11 2006
@@ -843,7 +843,8 @@
       if(_enableParallel) {
 	std::vector<Edge> el;
 	for(EdgeIt e(g);e!=INVALID;++e)
-	  if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0)
+	  if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0
+	     &&g.source(e)!=g.target(e))
 	    el.push_back(e);
 	std::sort(el.begin(),el.end(),edgeLess(g));
 	
@@ -931,7 +932,8 @@
 	}
       }
       else for(EdgeIt e(g);e!=INVALID;++e)
-	if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0)
+	if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0
+	   &&g.source(e)!=g.target(e))
 	  if(_drawArrows) {
 	    xy<double> d(mycoords[g.target(e)]-mycoords[g.source(e)]);
 	    double rn=_nodeSizes[g.target(e)]*_nodeScale;



More information about the Lemon-commits mailing list