Merge pull request #1577 from afabri/Triangulation_2-fix_for_empty_range-GF

(Merged from the merge of 'cgal/releases/CGAL-4.9-branch'.)
This commit is contained in:
Laurent Rineau 2016-10-20 10:18:51 +02:00
commit 5aaa9c0c22
1 changed files with 4 additions and 1 deletions

View File

@ -38,13 +38,16 @@ namespace CGAL {
IndicesIterator indices_first,
IndicesIterator indices_beyond )
{
if(indices_first == indices_beyond){
return 0;
}
typedef typename T::Vertex_handle Vertex_handle;
typedef typename T::Face_handle Face_handle;
typedef typename T::Geom_traits Geom_traits;
typedef typename T::Point Point;
typedef std::vector<std::size_t> Vertex_indices;
typedef std::vector<Vertex_handle> Vertices;
Vertex_indices vertex_indices;
vertex_indices.resize(points.size());