From 35094a786d6ac0151338a7fa0f143852097b3268 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 20 Jan 2024 12:05:45 +0100 Subject: [PATCH] PANEL_PCBNEW_COLOR_SETTINGS: ensure color setting for all DRC markers are in list From master branch. Fixes #16674 https://gitlab.com/kicad/code/kicad/-/issues/16674 --- pcbnew/dialogs/panel_pcbnew_color_settings.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcbnew/dialogs/panel_pcbnew_color_settings.cpp b/pcbnew/dialogs/panel_pcbnew_color_settings.cpp index 72aeb8661e..b8ab30e7a8 100644 --- a/pcbnew/dialogs/panel_pcbnew_color_settings.cpp +++ b/pcbnew/dialogs/panel_pcbnew_color_settings.cpp @@ -2,7 +2,7 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2020 Jon Evans - * 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 @@ -403,9 +403,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()