close polygon paths
This commit is contained in:
parent
5808b7f185
commit
919bf27dc3
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue