# HG changeset patch # User deba # Date 1116091768 0 # Node ID 53c2a0ccc9a4e940147e9344a135caf068fb0e57 # Parent 1b481ced25e75e13ec80d2064348aecbf692d9e0 std:: prefix bug corrected diff -r 1b481ced25e7 -r 53c2a0ccc9a4 src/demo/graph_to_eps_demo.cc --- a/src/demo/graph_to_eps_demo.cc Sat May 14 17:26:56 2005 +0000 +++ b/src/demo/graph_to_eps_demo.cc Sat May 14 17:29:28 2005 +0000 @@ -20,6 +20,8 @@ #include #include +#include + using namespace std; using namespace lemon; diff -r 1b481ced25e7 -r 53c2a0ccc9a4 src/lemon/graph_to_eps.h --- a/src/lemon/graph_to_eps.h Sat May 14 17:26:56 2005 +0000 +++ b/src/lemon/graph_to_eps.h Sat May 14 17:29:28 2005 +0000 @@ -18,7 +18,6 @@ #define LEMON_GRAPH_TO_EPS_H #include -#include #include #include @@ -26,11 +25,15 @@ #include #include +#include +#include + #include #include #include #include + ///\ingroup io_group ///\file ///\brief Simple graph drawer @@ -809,7 +812,7 @@ sw-=_parEdgeDist; sw/=-2.0; xy dvec(_coords[g.target(*i)]-_coords[g.source(*i)]); - double l=sqrt(dvec.normSquare()); + double l=std::sqrt(dvec.normSquare()); ///\todo better 'epsilon' would be nice here. xy d(dvec/std::max(l,1e-9)); xy m; @@ -862,7 +865,7 @@ << bez.p4.x << ' ' << bez.p4.y << " curveto stroke\n"; xy dd(rot90(linend-apoint)); dd*=(.5*_edgeWidths[*e]*_edgeWidthScale+_arrowWidth)/ - sqrt(dd.normSquare()); + std::sqrt(dd.normSquare()); os << "newpath " << psOut(apoint) << " moveto " << psOut(linend+dd) << " lineto " << psOut(linend-dd) << " lineto closepath fill\n";