PANEL_PCBNEW_COLOR_SETTINGS: ensure color setting for all DRC markers are in list

Fixes #16674
https://gitlab.com/kicad/code/kicad/-/issues/16674
This commit is contained in:
jean-pierre charras 2024-01-20 12:05:45 +01:00
parent b65fa46c3c
commit be723dd579
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2020 Jon Evans <jon@craftyjon.com>
* Copyright (C) 2020-2023 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2020-2024 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@ -707,9 +707,12 @@ PANEL_PCBNEW_COLOR_SETTINGS::PANEL_PCBNEW_COLOR_SETTINGS( wxWindow* aParent, BOA
m_validLayers.push_back( id );
}
// These layers are not in GAL_LAYER_ID_START ... GAL_LAYER_ID_BITMASK_END
m_validLayers.push_back( LAYER_LOCKED_ITEM_SHADOW );
m_validLayers.push_back( LAYER_CONFLICTS_SHADOW );
m_validLayers.push_back( LAYER_PAGE_LIMITS );
m_validLayers.push_back( LAYER_DRC_WARNING );
m_validLayers.push_back( LAYER_DRC_EXCLUSION );
// NOTE: Main board layers are added by createSwatches()