diff --git a/wrap/gui/trackmode.cpp b/wrap/gui/trackmode.cpp index f35fe5fe..b072a31a 100644 --- a/wrap/gui/trackmode.cpp +++ b/wrap/gui/trackmode.cpp @@ -333,12 +333,12 @@ void PathMode::Init(const std::vector < Point3f > &pts) for(unsigned int i=1;i &pts) } min_side_length=Distance(points[0],points[1]); for(unsigned int i=1;i ugly_letter) { Point3f center=tb->camera.Project(tb->center); float offset=0; - offset=std::max(offset,Distance(center,tb->camera.Project(tb->center+(Point3f(1,0,0) * tb->radius)))); - offset=std::max(offset,Distance(center,tb->camera.Project(tb->center+(Point3f(0,1,0) * tb->radius)))); - offset=std::max(offset,Distance(center,tb->camera.Project(tb->center+(Point3f(0,0,1) * tb->radius)))); + offset=(std::max)(offset,Distance(center,tb->camera.Project(tb->center+(Point3f(1,0,0) * tb->radius)))); + offset=(std::max)(offset,Distance(center,tb->camera.Project(tb->center+(Point3f(0,1,0) * tb->radius)))); + offset=(std::max)(offset,Distance(center,tb->camera.Project(tb->center+(Point3f(0,0,1) * tb->radius)))); glPushMatrix(); glPushAttrib (GL_ALL_ATTRIB_BITS); // go to world coords