diff --git a/pcbnew/import_gfx/svg_import_plugin.cpp b/pcbnew/import_gfx/svg_import_plugin.cpp
index d6fb4efda4..d56b724c2d 100644
--- a/pcbnew/import_gfx/svg_import_plugin.cpp
+++ b/pcbnew/import_gfx/svg_import_plugin.cpp
@@ -73,16 +73,10 @@ bool SVG_IMPORT_PLUGIN::Load( const wxString& aFileName )
 
 bool SVG_IMPORT_PLUGIN::Import()
 {
-    auto alpha =
-            []( int color )
-            {
-                return color >> 24;
-            };
-
     for( NSVGshape* shape = m_parsedImage->shapes; shape != nullptr; shape = shape->next )
     {
         double lineWidth = shape->strokeWidth;
-        bool   filled = shape->fill.type == NSVG_PAINT_COLOR && alpha( shape->fill.color ) > 0;
+        bool   filled = shape->fill.type != NSVG_PAINT_NONE;
 
         GRAPHICS_IMPORTER::POLY_FILL_RULE rule = GRAPHICS_IMPORTER::PF_NONZERO;