1.1 --- a/lemon/graph_to_eps.h Fri Mar 02 17:56:22 2007 +0000
1.2 +++ b/lemon/graph_to_eps.h Fri Mar 02 18:04:28 2007 +0000
1.3 @@ -949,14 +949,14 @@
1.4 node_shape=_nodeShapes[g.target(*e)];
1.5 dim2::Bezier3 bez(s,mm,mm,t);
1.6 double t1=0,t2=1;
1.7 - for(int i=0;i<INTERPOL_PREC;++i)
1.8 + for(int ii=0;ii<INTERPOL_PREC;++ii)
1.9 if(isInsideNode(bez((t1+t2)/2)-t,rn,node_shape)) t2=(t1+t2)/2;
1.10 else t1=(t1+t2)/2;
1.11 dim2::Point<double> apoint=bez((t1+t2)/2);
1.12 rn = _arrowLength+_edgeWidths[*e]*_edgeWidthScale;
1.13 rn*=rn;
1.14 t2=(t1+t2)/2;t1=0;
1.15 - for(int i=0;i<INTERPOL_PREC;++i)
1.16 + for(int ii=0;ii<INTERPOL_PREC;++ii)
1.17 if((bez((t1+t2)/2)-apoint).normSquare()>rn) t1=(t1+t2)/2;
1.18 else t2=(t1+t2)/2;
1.19 dim2::Point<double> linend=bez((t1+t2)/2);