Fix layer ordering of pad net names

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6881
This commit is contained in:
Jon Evans 2020-12-29 18:31:44 -05:00
parent a637f310d0
commit 0b0af2f545
1 changed files with 7 additions and 0 deletions

View File

@ -359,6 +359,13 @@ void PCB_DRAW_PANEL_GAL::SetTopLayer( PCB_LAYER_ID aLayer )
m_view->SetLayerOrder( aLayer, m_view->GetLayerOrder( LAYER_MARKER_SHADOWS ) + 1 );
m_view->SetLayerOrder( ZONE_LAYER_FOR( aLayer ),
m_view->GetLayerOrder( LAYER_MARKER_SHADOWS ) + 2 );
// Fix up pad and via netnames to be below. This is hacky, we need a rethink
// of layer ordering...
m_view->SetLayerOrder( LAYER_PADS_NETNAMES,
m_view->GetLayerOrder( LAYER_MARKER_SHADOWS ) + 3 );
m_view->SetLayerOrder( LAYER_VIAS_NETNAMES,
m_view->GetLayerOrder( LAYER_MARKER_SHADOWS ) + 4 );
}
}
else if( IsCopperLayer( aLayer ) )