Gerbview: keep highlighted and selected layers above active layer

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7201
This commit is contained in:
Mike Williams 2021-08-17 14:03:49 -04:00 committed by jean-pierre charras
parent 6427197962
commit 905a8366c5
1 changed files with 3 additions and 2 deletions

View File

@ -189,8 +189,9 @@ void GERBVIEW_DRAW_PANEL_GAL::SetTopLayer( int aLayer )
for( int i = 0; i < GERBER_DRAWLAYERS_COUNT; ++i )
{
m_view->SetLayerOrder( GERBER_DCODE_LAYER( GERBER_DRAW_LAYER( i ) ), 2 * i );
m_view->SetLayerOrder( GERBER_DRAW_LAYER( i ), ( 2 * i ) + 1 );
m_view->SetLayerOrder( GERBER_DCODE_LAYER( GERBER_DRAW_LAYER( i ) ),
GERBER_DRAW_LAYER( 2 * i ) );
m_view->SetLayerOrder( GERBER_DRAW_LAYER( i ), GERBER_DRAW_LAYER( ( 2 * i ) + 1 ) );
}
m_view->SetTopLayer( aLayer );