BUGFIX: Even if a polyline is closed, it needs at least 3 points to be a polygon.

This commit is contained in:
Sébastien Loriot 2011-06-08 09:31:44 +00:00
parent f9c4053a0d
commit 4fdb182b99
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ protected:
std::list<typename K::Point_2> points;
Converter<K> convert;
convert(points, this->polygon);
if(closed_){
if(closed_ && points.size()>2){
points.push_back(points.front());
}
emit(generate(CGAL::make_object(points)));