Pcbnew: fix erroneous IslandRemovalMode default mode in board files.

The default is ISLAND_REMOVAL_MODE::ALWAYS in *.kicad_pcb files
This commit is contained in:
jean-pierre charras 2022-03-09 13:17:18 +01:00
parent e7f379c31d
commit 878c70c1ab
2 changed files with 4 additions and 0 deletions

View File

@ -5356,6 +5356,9 @@ ZONE* PCB_PARSER::parseZONE( BOARD_ITEM_CONTAINER* aParent )
zone->SetAssignedPriority( 0 );
// This is the default for board files:
zone->SetIslandRemovalMode( ISLAND_REMOVAL_MODE::ALWAYS );
for( token = NextTok(); token != T_RIGHT; token = NextTok() )
{
if( token == T_locked )

View File

@ -49,6 +49,7 @@ ZONE::ZONE( BOARD_ITEM_CONTAINER* aParent, bool aInFP ) :
m_CornerSelection = nullptr; // no corner is selected
m_isFilled = false; // fill status : true when the zone is filled
m_teardropType = TEARDROP_TYPE::TD_NONE;
m_islandRemovalMode = ISLAND_REMOVAL_MODE::ALWAYS;
m_borderStyle = ZONE_BORDER_DISPLAY_STYLE::DIAGONAL_EDGE;
m_borderHatchPitch = GetDefaultHatchPitch();
m_priority = 0;