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
(cherry picked from commit b56db30019
)
This commit is contained in:
parent
6c423be36f
commit
d5bf831f60
|
@ -97,7 +97,7 @@ bool SVG_IMPORT_PLUGIN::Import()
|
||||||
|
|
||||||
for( NSVGpath* path = shape->paths; path != nullptr; path = path->next )
|
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 );
|
DrawPath( path->pts, path->npts, closed, filled, lineWidth );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue