Gerbview: keep highlighted and selected layers above active layer
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7201
This commit is contained in:
parent
6427197962
commit
905a8366c5
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue