Fix polygon fill flag in pcbnew graphics (SVG) importer.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17957
(cherry picked from commit 35c788a332
)
Co-authored-by: Alex Shvartzkop <dudesuchamazing@gmail.com>
This commit is contained in:
parent
0e9b547f94
commit
05b2b3c26e
|
@ -3,7 +3,7 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 CERN
|
* Copyright (C) 2016 CERN
|
||||||
* @author Maciej Suminski <maciej.suminski@cern.ch>
|
* @author Maciej Suminski <maciej.suminski@cern.ch>
|
||||||
* 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
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -160,7 +160,7 @@ void GRAPHICS_IMPORTER_PCBNEW::AddPolygon( const std::vector<VECTOR2D>& aVertice
|
||||||
|
|
||||||
std::unique_ptr<PCB_SHAPE> polygon = std::make_unique<PCB_SHAPE>( m_parent );
|
std::unique_ptr<PCB_SHAPE> polygon = std::make_unique<PCB_SHAPE>( m_parent );
|
||||||
polygon->SetShape( SHAPE_T::POLY );
|
polygon->SetShape( SHAPE_T::POLY );
|
||||||
polygon->SetFilled( GetLayer() != Edge_Cuts );
|
polygon->SetFilled( aFilled );
|
||||||
polygon->SetLayer( GetLayer() );
|
polygon->SetLayer( GetLayer() );
|
||||||
polygon->SetPolyPoints( convertedPoints );
|
polygon->SetPolyPoints( convertedPoints );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue