Permalink
Browse files

sanity check for regions with < 3 vertices

  • Loading branch information...
floe committed May 9, 2013
1 parent cf11612 commit 246ee8b7bcb7b9b7e3f9b69939fdbed4cac91a83
Showing with 2 additions and 0 deletions.
  1. +2 −0 gispl/Region.cc
View
@@ -62,6 +62,8 @@ Region::Region( unsigned int _flags ): std::vector<Vector>(), gestures(), m_flag
int Region::contains( Vector v ) {
if (size() < 3) return 0;
std::vector<Vector>::iterator pos1 = this->begin();
std::vector<Vector>::iterator pos2 = pos1; pos2++;
std::vector<Vector>::iterator end = this->end();

0 comments on commit 246ee8b

Please sign in to comment.