apply 5eb406c7df to non PHOENIX_V3 code

This commit is contained in:
Dane Springmeyer 2013-11-21 13:09:18 -08:00
parent 5c15ba9e86
commit cab6d239f2

View file

@ -117,8 +117,11 @@ struct close_path
void operator() (T path) const
{
BOOST_ASSERT( path!=0 );
path->close_path();
}
if (path->size() > 2u) // to form a polygon ring we need at least 3 vertices
{
path->close_path();
}
}
};
struct cleanup