mirror of https://github.com/CGAL/cgal
BUGFIX: Even if a polyline is closed, it needs at least 3 points to be a polygon.
This commit is contained in:
parent
f9c4053a0d
commit
4fdb182b99
|
|
@ -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)));
|
||||
|
|
|
|||
Loading…
Reference in New Issue