← Back to team overview

kicad-developers team mailing list archive

[PATCH] Remove LAYER_WORKSHEET from forced visibility since it now has a control

 

Fixes: https://bugs.launchpad.net/kicad/+bug/1737315

-Jon
From 5929f906aee2d5d7cf3b98add4efb0705e3b7782 Mon Sep 17 00:00:00 2001
From: Jon Evans <jon@xxxxxxxxxxxxx>
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 b88eef97c..a3d70c936 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 07c3b545c..83adabeec 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 );
 }
 
-- 
2.14.1


Follow ups