mirror of https://github.com/CGAL/cgal
fix for bug #1533
This commit is contained in:
parent
86cc842d4d
commit
6f0cda39a7
|
|
@ -341,10 +341,14 @@ inline void
|
|||
Constrained_triangulation_plus_2<Tr>::
|
||||
insert_constraint(Vertex_handle va, Vertex_handle vb)
|
||||
{
|
||||
// protects against inserting twice the same constraint
|
||||
bool no_twice = hierarchy.insert_constraint(va, vb);
|
||||
if (va != vb && no_twice ) insert_subconstraint(va,vb);
|
||||
return;
|
||||
if( va != vb ){
|
||||
// protects against inserting twice the same constraint
|
||||
bool no_twice = hierarchy.insert_constraint(va, vb);
|
||||
if ( no_twice ){
|
||||
insert_subconstraint(va,vb);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue