Pcbnew, minor fix: do not write twice the dielectric color in stackup section in broad file.

This commit is contained in:
jean-pierre charras 2023-01-11 17:45:00 +01:00
parent c89925578d
commit 1500e3bb80
1 changed files with 1 additions and 6 deletions

View File

@ -649,12 +649,7 @@ void BOARD_STACKUP::FormatBoardStackup( OUTPUTFORMATTER* aFormatter,
aFormatter->Quotew( layer_name ).c_str(),
aFormatter->Quotew( item->GetTypeName() ).c_str() );
if( item->IsColorEditable() && IsPrmSpecified( item->GetColor() ) )
{
aFormatter->Print( 0, " (color %s)",
aFormatter->Quotew( item->GetColor() ).c_str() );
}
// Output other parameters ( in sub layer list there is at least one item)
for( int idx = 0; idx < item->GetSublayersCount(); idx++ )
{
if( idx ) // not for the main (first) layer.