close polygon paths

This commit is contained in:
Dane Springmeyer 2015-04-29 15:40:22 -07:00
parent 5808b7f185
commit 919bf27dc3

View file

@ -80,6 +80,7 @@ struct geometry_to_path
if (first) { p_.move_to(pt.x, pt.y); first=false;}
else p_.line_to(pt.x, pt.y);
}
p_.close_path();
// interior
for (auto const& ring : poly.interior_rings)
{
@ -91,6 +92,7 @@ struct geometry_to_path
if (first) { p_.move_to(pt.x, pt.y); first=false;}
else p_.line_to(pt.x, pt.y);
}
p_.close_path();
}
}