From 6ee26fdd8c3166c2442e5cf106c9415a16070722 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sat, 9 Dec 2017 13:07:51 -0500 Subject: [PATCH] Remove LAYER_WORKSHEET from forced visibility since it now has a control Fixes: lp:1737315 * https://bugs.launchpad.net/kicad/+bug/1737315 --- include/layers_id_colors_and_visibility.h | 1 - pcbnew/pcb_draw_panel_gal.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/include/layers_id_colors_and_visibility.h b/include/layers_id_colors_and_visibility.h index b88eef97c2..a3d70c9367 100644 --- a/include/layers_id_colors_and_visibility.h +++ b/include/layers_id_colors_and_visibility.h @@ -308,7 +308,6 @@ enum GERBVIEW_LAYER_ID: int ( 1 << GAL_LAYER_INDEX( LAYER_NON_PLATEDHOLES ) ) +\ ( 1 << GAL_LAYER_INDEX( LAYER_VIAS_HOLES ) ) +\ ( 1 << GAL_LAYER_INDEX( LAYER_DRC ) ) +\ - ( 1 << GAL_LAYER_INDEX( LAYER_WORKSHEET ) ) +\ ( 1 << GAL_LAYER_INDEX( LAYER_GP_OVERLAY ) ) ) diff --git a/pcbnew/pcb_draw_panel_gal.cpp b/pcbnew/pcb_draw_panel_gal.cpp index 07c3b545c7..83adabeece 100644 --- a/pcbnew/pcb_draw_panel_gal.cpp +++ b/pcbnew/pcb_draw_panel_gal.cpp @@ -312,7 +312,6 @@ void PCB_DRAW_PANEL_GAL::SyncLayersVisibility( const BOARD* aBoard ) // Enable some layers that are GAL specific m_view->SetLayerVisible( LAYER_PADS_PLATEDHOLES, true ); m_view->SetLayerVisible( LAYER_VIAS_HOLES, true ); - m_view->SetLayerVisible( LAYER_WORKSHEET, true ); m_view->SetLayerVisible( LAYER_GP_OVERLAY, true ); }