gal: correct layer ordering

Net labels need to be rendered under the selected item.

Fixes: lp:1790016
* https://bugs.launchpad.net/kicad/+bug/1790016
This commit is contained in:
Seth Hillbrand 2018-08-30 16:54:08 -07:00
parent 83e6940592
commit 0109641c2f
2 changed files with 3 additions and 1 deletions

View File

@ -168,6 +168,8 @@ void GERBVIEW_DRAW_PANEL_GAL::SetTopLayer( int aLayer )
// Move DCODE layer to the top // Move DCODE layer to the top
m_view->SetTopLayer( GERBER_DCODE_LAYER( aLayer ) ); m_view->SetTopLayer( GERBER_DCODE_LAYER( aLayer ) );
m_view->SetTopLayer( LAYER_SELECT_OVERLAY );
m_view->SetTopLayer( LAYER_GP_OVERLAY ); m_view->SetTopLayer( LAYER_GP_OVERLAY );
m_view->UpdateAllLayersOrder(); m_view->UpdateAllLayersOrder();

View File

@ -48,8 +48,8 @@ const LAYER_NUM GAL_LAYER_ORDER[] =
{ {
LAYER_GP_OVERLAY, LAYER_GP_OVERLAY,
LAYER_DRC, LAYER_DRC,
LAYER_PADS_NETNAMES, LAYER_VIAS_NETNAMES,
LAYER_SELECT_OVERLAY, LAYER_SELECT_OVERLAY,
LAYER_PADS_NETNAMES, LAYER_VIAS_NETNAMES,
Dwgs_User, Cmts_User, Eco1_User, Eco2_User, Edge_Cuts, Dwgs_User, Cmts_User, Eco1_User, Eco2_User, Edge_Cuts,
LAYER_MOD_TEXT_FR, LAYER_MOD_TEXT_FR,