7
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:
Ethan Chien 2025-01-04 20:52:18 +08:00
parent 4177cfb93a
commit ddb91eb387
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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 ) );