Fix copy/pasta in GetLayerColors().
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17374
This commit is contained in:
parent
9602151d6c
commit
c8d897ed0f
|
@ -595,8 +595,10 @@ std::map<int, COLOR4D> BOARD_ADAPTER::GetLayerColors() const
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for( const auto& [ layer, color ] : GetDefaultColors() )
|
COLOR_SETTINGS* settings = Pgm().GetSettingsManager().GetColorSettings();
|
||||||
colors[ layer ] = color;
|
|
||||||
|
for( const auto& [ layer, defaultColor /* unused */ ] : GetDefaultColors() )
|
||||||
|
colors[ layer ] = settings->GetColor( layer );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_Cfg->m_UseStackupColors && m_board )
|
if( m_Cfg->m_UseStackupColors && m_board )
|
||||||
|
|
Loading…
Reference in New Issue