Fix layer ordering logic for non-copper layers
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6817
This commit is contained in:
parent
8a2667c4c3
commit
d0429ced8d
|
@ -353,14 +353,12 @@ void PCB_DRAW_PANEL_GAL::SetTopLayer( PCB_LAYER_ID aLayer )
|
|||
m_view->SetTopLayer( ZONE_LAYER_FOR( layer ) );
|
||||
}
|
||||
|
||||
// Move the active layer to the top. Dwgs_User and Cmts_User are simply the first two
|
||||
// "real" layers in the layer ordering, so they are used as "on top" -- overlay layers
|
||||
// should still be above them.
|
||||
// Move the active layer to the top of the stack but below all the overlay layers
|
||||
if( !IsCopperLayer( aLayer ) )
|
||||
{
|
||||
m_view->SetLayerOrder( aLayer, m_view->GetLayerOrder( Dwgs_User ) );
|
||||
m_view->SetLayerOrder( aLayer, m_view->GetLayerOrder( LAYER_MARKER_SHADOWS ) + 1 );
|
||||
m_view->SetLayerOrder( ZONE_LAYER_FOR( aLayer ),
|
||||
m_view->GetLayerOrder( Cmts_User ) );
|
||||
m_view->GetLayerOrder( LAYER_MARKER_SHADOWS ) + 2 );
|
||||
}
|
||||
}
|
||||
else if( IsCopperLayer( aLayer ) )
|
||||
|
|
Loading…
Reference in New Issue