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:
parent
3dc308464c
commit
b56db30019
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue