mirror of https://github.com/CGAL/cgal
protect min and max
This commit is contained in:
parent
d7720073e2
commit
b7ed4f249e
|
|
@ -26,8 +26,8 @@ struct Colored_faces_given_height:
|
||||||
{ m_min_z=sm.point(vi).z(); m_max_z=m_min_z; first=false; }
|
{ m_min_z=sm.point(vi).z(); m_max_z=m_min_z; first=false; }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_min_z=std::min(m_min_z, sm.point(vi).z());
|
m_min_z=(std::min)(m_min_z, sm.point(vi).z());
|
||||||
m_max_z=std::max(m_max_z, sm.point(vi).z());
|
m_max_z=(std::max)(m_max_z, sm.point(vi).z());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue