Added missing std namespace qualifier to min and max

This commit is contained in:
Paolo Cignoni 2008-07-04 07:30:49 +00:00
parent a8becdc8f1
commit 29ad822941
1 changed files with 4 additions and 4 deletions

View File

@ -284,10 +284,10 @@ public:
Save(ed,o,pro, -2);
Point2f* pmi=pro.getminPoint();
Point2f* pma=pro.getmaxPoint();
pmin[0]=min(pmin[0], pmi->X());
pmin[1]=min(pmin[1], pmi->Y());
pmax[0]=max(pmax[0], pma->X());
pmax[1]=max(pmax[1], pma->Y());
pmin[0]=std::min(pmin[0], pmi->X());
pmin[1]=std::min(pmin[1], pmi->Y());
pmax[0]=std::max(pmax[0], pma->X());
pmax[1]=std::max(pmax[1], pma->Y());
}
float maxEdge=std::max(pmax[0]-pmin[0], pmax[1]-pmin[1]);
float scl = (pro.getViewBox().V(0)/pro.numCol) /maxEdge ;