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>::
|
Constrained_triangulation_plus_2<Tr>::
|
||||||
insert_constraint(Vertex_handle va, Vertex_handle vb)
|
insert_constraint(Vertex_handle va, Vertex_handle vb)
|
||||||
{
|
{
|
||||||
// protects against inserting twice the same constraint
|
if( va != vb ){
|
||||||
bool no_twice = hierarchy.insert_constraint(va, vb);
|
// protects against inserting twice the same constraint
|
||||||
if (va != vb && no_twice ) insert_subconstraint(va,vb);
|
bool no_twice = hierarchy.insert_constraint(va, vb);
|
||||||
return;
|
if ( no_twice ){
|
||||||
|
insert_subconstraint(va,vb);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue