diff --git a/pcbnew/widgets/appearance_controls.cpp b/pcbnew/widgets/appearance_controls.cpp index 12bde59a31..91df78d44f 100644 --- a/pcbnew/widgets/appearance_controls.cpp +++ b/pcbnew/widgets/appearance_controls.cpp @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -2913,7 +2914,9 @@ void APPEARANCE_CONTROLS::OnColorSwatchChanged( wxCommandEvent& aEvent ) int layer = swatch->GetId(); COLOR_SETTINGS* cs = m_frame->GetColorSettings(); + cs->SetColor( layer, newColor ); + m_frame->GetSettingsManager()->SaveColorSettings( cs, "board" ); m_frame->GetCanvas()->UpdateColors();