From 436f95e02ef103bef2b0c9f9d011e431680af738 Mon Sep 17 00:00:00 2001
From: Seth Hillbrand <seth@kipro-pcb.com>
Date: Tue, 29 Nov 2022 10:43:14 -0800
Subject: [PATCH] Don't look for alpha in nanosvg color

Nanosvg colors are only RGB, so we will never get an alpha value here.

Fixes https://gitlab.com/kicad/code/kicad/issues/13033
---
 pcbnew/import_gfx/svg_import_plugin.cpp | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

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;