1
0
Fork 0

Fred Bouvier:

Fix genapts crash in remove_dups due to duplicate points being reduced to an empty polygon.
This commit is contained in:
Ralf Gerlich 2009-03-14 11:55:01 +01:00
parent beadd0123a
commit ba5a9b363e

View file

@ -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 ];