mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-11 11:20:09 +00:00
Zone Manager: Update layer handling to use UIOrder instead of Seq
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19482
This commit is contained in:
parent
4177cfb93a
commit
ddb91eb387
pcbnew/zone_manager
@ -143,7 +143,7 @@ void MODEL_ZONES_OVERVIEW_TABLE::GetValueByRow( wxVariant& aVariant, unsigned aR
|
||||
layers.Add( m_pcb->GetLayerName( layer ) );
|
||||
|
||||
aVariant << wxDataViewIconText( wxJoin( layers, ',' ),
|
||||
MakeBitmapForLayers( cur.GetLayerSet().Seq(),
|
||||
MakeBitmapForLayers( cur.GetLayerSet().UIOrder(),
|
||||
*m_PCB_FRAME->GetColorSettings(),
|
||||
bmSize ) );
|
||||
break;
|
||||
|
@ -145,7 +145,7 @@ void PANE_ZONE_VIEWER::ActivateSelectedZone( ZONE* aZone )
|
||||
|
||||
const PCB_LAYER_ID firstLayer = aZone->GetFirstLayer();
|
||||
|
||||
for( PCB_LAYER_ID layer : aZone->GetLayerSet().Seq() )
|
||||
for( PCB_LAYER_ID layer : aZone->GetLayerSet().UIOrder() )
|
||||
{
|
||||
wxString layerName =
|
||||
m_pcbFrame->GetBoard()->GetLayerName( static_cast<PCB_LAYER_ID>( layer ) );
|
||||
|
Loading…
Reference in New Issue
Block a user