From 08c944a46792e7365c823c3e8a8f08b98d7cf628 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sun, 3 Feb 2019 11:21:28 +0100 Subject: [PATCH] cairo: Ensure Courtyard drawing order Prevent courtyard from being raised twice Fixes: lp:1811821 * https://bugs.launchpad.net/kicad/+bug/1811821 --- pcbnew/pcb_draw_panel_gal.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcbnew/pcb_draw_panel_gal.cpp b/pcbnew/pcb_draw_panel_gal.cpp index 005fc99aa7..0ec293dfd9 100644 --- a/pcbnew/pcb_draw_panel_gal.cpp +++ b/pcbnew/pcb_draw_panel_gal.cpp @@ -282,12 +282,12 @@ void PCB_DRAW_PANEL_GAL::SetTopLayer( PCB_LAYER_ID aLayer ) // Extra layers that are brought to the top if a F.* or B.* is selected const std::vector frontLayers = { - F_Cu, F_Adhes, F_Paste, F_SilkS, F_Mask, F_CrtYd, F_Fab, LAYER_PAD_FR, + F_Cu, F_Adhes, F_Paste, F_SilkS, F_Mask, F_Fab, LAYER_PAD_FR, LAYER_PAD_FR_NETNAMES, NETNAMES_LAYER_INDEX( F_Cu ) }; const std::vector backLayers = { - B_Cu, B_Adhes, B_Paste, B_SilkS, B_Mask, B_CrtYd, B_Fab, LAYER_PAD_BK, + B_Cu, B_Adhes, B_Paste, B_SilkS, B_Mask, B_Fab, LAYER_PAD_BK, LAYER_PAD_BK_NETNAMES, NETNAMES_LAYER_INDEX( B_Cu ) }; @@ -314,6 +314,7 @@ void PCB_DRAW_PANEL_GAL::SetTopLayer( PCB_LAYER_ID aLayer ) m_view->SetTopLayer( GetNetnameLayer( aLayer ) ); } + m_view->EnableTopLayer( true ); m_view->UpdateAllLayersOrder(); }