Fred Bouvier:
Fix genapts crash in remove_dups due to duplicate points being reduced to an empty polygon.
This commit is contained in:
parent
beadd0123a
commit
ba5a9b363e
1 changed files with 1 additions and 1 deletions
|
@ -673,7 +673,7 @@ TGPolygon remove_dups( const TGPolygon &poly ) {
|
|||
// cout << "testing contour " << i << " size = " << contour.size()
|
||||
// << " hole = " << poly.get_hole_flag( i ) << endl;
|
||||
bool have_dups = true;
|
||||
while ( have_dups ) {
|
||||
while ( have_dups && contour.size() ) {
|
||||
have_dups = false;
|
||||
new_contour.clear();
|
||||
Point3D last = contour[ contour.size() - 1 ];
|
||||
|
|
Loading…
Reference in a new issue