From feeb925e6189100dba7cdc46fa7ef185d3a0e45c Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Thu, 24 Sep 2020 13:43:17 -0400 Subject: [PATCH] Pcbnew: add user defined layer colors to color preferences panel. --- pcbnew/dialogs/panel_pcbnew_color_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/dialogs/panel_pcbnew_color_settings.cpp b/pcbnew/dialogs/panel_pcbnew_color_settings.cpp index 81999f1d53..56e0e5f7c9 100644 --- a/pcbnew/dialogs/panel_pcbnew_color_settings.cpp +++ b/pcbnew/dialogs/panel_pcbnew_color_settings.cpp @@ -456,7 +456,7 @@ void PANEL_PCBNEW_COLOR_SETTINGS::createSwatches() } ); // Don't sort board layers by name - for( int i = PCBNEW_LAYER_ID_START; i <= F_Fab; ++i ) + for( int i = PCBNEW_LAYER_ID_START; i <= User_9; ++i ) m_validLayers.insert( m_validLayers.begin() + i, i ); BOARD* board = m_frame->GetBoard();