Allow user layer names to be used in DRC rules.
I imagine this will also fix the property inspector, once it gets merged.
This commit is contained in:
parent
095937563b
commit
1790c536ef
|
@ -544,7 +544,7 @@ public:
|
|||
return m_default;
|
||||
}
|
||||
|
||||
const wxPGChoices& Choices() const
|
||||
wxPGChoices& Choices()
|
||||
{
|
||||
return m_choices;
|
||||
}
|
||||
|
|
|
@ -467,6 +467,14 @@ void PCB_EDIT_FRAME::setupTools()
|
|||
|
||||
void PCB_EDIT_FRAME::ReFillLayerWidget()
|
||||
{
|
||||
ENUM_MAP<PCB_LAYER_ID>& layerEnum = ENUM_MAP<PCB_LAYER_ID>::Instance();
|
||||
|
||||
layerEnum.Choices().Clear();
|
||||
layerEnum.SetDefault( UNDEFINED_LAYER );
|
||||
|
||||
for( LSEQ seq = LSET::AllLayersMask().Seq(); seq; ++seq )
|
||||
layerEnum.Map( *seq, GetBoard()->GetLayerName( *seq ) );
|
||||
|
||||
wxWindowUpdateLocker no_update( m_Layers );
|
||||
m_Layers->ReFill();
|
||||
|
||||
|
|
Loading…
Reference in New Issue