From 05b2b3c26e1d8957ee7290ddc923504e601c46ed Mon Sep 17 00:00:00 2001 From: dsa-t Date: Mon, 6 May 2024 11:17:40 +0000 Subject: [PATCH] Fix polygon fill flag in pcbnew graphics (SVG) importer. Fixes https://gitlab.com/kicad/code/kicad/-/issues/17957 (cherry picked from commit 35c788a332e15701b5f80c3b323d26d99d283772) Co-authored-by: Alex Shvartzkop --- pcbnew/import_gfx/graphics_importer_pcbnew.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/import_gfx/graphics_importer_pcbnew.cpp b/pcbnew/import_gfx/graphics_importer_pcbnew.cpp index 2fa94b8d6d..f036076232 100644 --- a/pcbnew/import_gfx/graphics_importer_pcbnew.cpp +++ b/pcbnew/import_gfx/graphics_importer_pcbnew.cpp @@ -3,7 +3,7 @@ * * Copyright (C) 2016 CERN * @author Maciej Suminski - * Copyright (C) 2018-2023 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2018-2024 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -160,7 +160,7 @@ void GRAPHICS_IMPORTER_PCBNEW::AddPolygon( const std::vector& aVertice std::unique_ptr polygon = std::make_unique( m_parent ); polygon->SetShape( SHAPE_T::POLY ); - polygon->SetFilled( GetLayer() != Edge_Cuts ); + polygon->SetFilled( aFilled ); polygon->SetLayer( GetLayer() ); polygon->SetPolyPoints( convertedPoints );