# HG changeset patch # User alpar # Date 1140511691 0 # Node ID a71f388045f9a67c0bfd08e5b4dbee07b0f9da3a # Parent 64db671eda2846edb0d6fccc92d660869f976437 Fix bug #26: Check if an edge is a loop and do not draw then diff -r 64db671eda28 -r a71f388045f9 lemon/graph_to_eps.h --- a/lemon/graph_to_eps.h Mon Feb 20 09:40:07 2006 +0000 +++ b/lemon/graph_to_eps.h Tue Feb 21 08:48:11 2006 +0000 @@ -843,7 +843,8 @@ if(_enableParallel) { std::vector el; for(EdgeIt e(g);e!=INVALID;++e) - if((!_undirected||g.source(e)0) + if((!_undirected||g.source(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)0) + if((!_undirected||g.source(e)0 + &&g.source(e)!=g.target(e)) if(_drawArrows) { xy d(mycoords[g.target(e)]-mycoords[g.source(e)]); double rn=_nodeSizes[g.target(e)]*_nodeScale;