From f69b38449bb6a15f6776e5159cc433a2b068e365 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Sun, 20 Dec 2009 22:55:13 +0000 Subject: [PATCH] call showPresets() from OnCopperLayersChoice() --- pcbnew/dialog_layers_setup.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pcbnew/dialog_layers_setup.cpp b/pcbnew/dialog_layers_setup.cpp index 211ea6e9e8..ca1fc7227f 100644 --- a/pcbnew/dialog_layers_setup.cpp +++ b/pcbnew/dialog_layers_setup.cpp @@ -24,8 +24,6 @@ */ -/* functions relatives to the design rules editor - */ #include "fctsys.h" #include "common.h" #include "class_drawpanel.h" @@ -425,7 +423,7 @@ void DIALOG_LAYERS_SETUP::OnCheckBox( wxCommandEvent& event ) void DIALOG_LAYERS_SETUP::DenyChangeCheckBox( wxCommandEvent& event ) { // user may not change copper layer checkboxes from anything other than - // the one place, the drop down m_CopperLayersChoice control. + // either presets choice or the copper layer choice controls. // I tried to simply diable the copper CheckBoxes but they look like crap, // so leave them enabled and reverse the user's attempt to toggle them. @@ -470,9 +468,10 @@ void DIALOG_LAYERS_SETUP::OnCopperLayersChoice( wxCommandEvent& event ) setCopperLayerCheckBoxes( m_CopperLayerCount ); -// event.Skip(); -} + m_EnabledLayers = getUILayerMask(); + showPresets( m_EnabledLayers ); +} /*****************************************************************/