Ensure that even open paths with fills are filled

SVG paths that are "open" can still have a fill internally, so avoid
dropping fills for these non-standard polygons

Fixes https://gitlab.com/kicad/code/kicad/issues/14518
This commit is contained in:
Seth Hillbrand 2023-04-20 12:29:51 -07:00
parent 3dc308464c
commit b56db30019
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ bool SVG_IMPORT_PLUGIN::Import()
for( NSVGpath* path = shape->paths; path != nullptr; path = path->next )
{
bool closed = path->closed || rule == GRAPHICS_IMPORTER::PF_EVEN_ODD;
bool closed = path->closed || filled || rule == GRAPHICS_IMPORTER::PF_EVEN_ODD;
DrawPath( path->pts, path->npts, closed, filled, lineWidth );
}