Skip to content

Commit

Permalink
move eol to the triangulation operator
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Oct 4, 2018
1 parent 3ed89cb commit 8282e7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Triangulation/include/CGAL/Triangulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -1408,12 +1408,12 @@ operator<<(std::ostream & os, const Triangulation<TT, TDS> & tr)

// infinite vertex has index 0 (among all the vertices)
index_of_vertex[tr.infinite_vertex()] = i++;
os << *tr.infinite_vertex();
os << *tr.infinite_vertex() <<"\n";
for( Vertex_iterator it = tr.vertices_begin(); it != tr.vertices_end(); ++it )
{
if( tr.is_infinite(it) )
continue;
os << *it; // write the vertex
os << *it <<"\n"; // write the vertex
index_of_vertex[it] = i++;
}
CGAL_assertion( i == n+1 );
Expand Down
2 changes: 1 addition & 1 deletion Triangulation/include/CGAL/Triangulation_vertex.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ std::ostream &
operator<<(std::ostream & os, const Triangulation_vertex<A, Data, B> & v)
{
os << v.point();
os << v.data() << "\n";
os << v.data();
return os;
}

Expand Down

0 comments on commit 8282e7f

Please sign in to comment.