Fix bug #26: Check if an edge is a loop and do not draw then
authoralpar
Tue, 21 Feb 2006 08:48:11 +0000
changeset 1976a71f388045f9
parent 1975 64db671eda28
child 1977 8ef02f0c4245
Fix bug #26: Check if an edge is a loop and do not draw then
lemon/graph_to_eps.h
     1.1 --- a/lemon/graph_to_eps.h	Mon Feb 20 09:40:07 2006 +0000
     1.2 +++ b/lemon/graph_to_eps.h	Tue Feb 21 08:48:11 2006 +0000
     1.3 @@ -843,7 +843,8 @@
     1.4        if(_enableParallel) {
     1.5  	std::vector<Edge> el;
     1.6  	for(EdgeIt e(g);e!=INVALID;++e)
     1.7 -	  if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0)
     1.8 +	  if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0
     1.9 +	     &&g.source(e)!=g.target(e))
    1.10  	    el.push_back(e);
    1.11  	std::sort(el.begin(),el.end(),edgeLess(g));
    1.12  	
    1.13 @@ -931,7 +932,8 @@
    1.14  	}
    1.15        }
    1.16        else for(EdgeIt e(g);e!=INVALID;++e)
    1.17 -	if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0)
    1.18 +	if((!_undirected||g.source(e)<g.target(e))&&_edgeWidths[e]>0
    1.19 +	   &&g.source(e)!=g.target(e))
    1.20  	  if(_drawArrows) {
    1.21  	    xy<double> d(mycoords[g.target(e)]-mycoords[g.source(e)]);
    1.22  	    double rn=_nodeSizes[g.target(e)]*_nodeScale;