From e997a7db9ac8e2b812af90ba328918fbbcbb3a21 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 15 May 2019 16:11:04 +0200 Subject: [PATCH] Gerbview: Sync issue between the D Code drop list and the active layer Fixes: lp:1829234 https://bugs.launchpad.net/kicad/+bug/1829234 --- gerbview/events_called_functions.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gerbview/events_called_functions.cpp b/gerbview/events_called_functions.cpp index 2b92533f8a..6095cf953e 100644 --- a/gerbview/events_called_functions.cpp +++ b/gerbview/events_called_functions.cpp @@ -2,7 +2,7 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2011-2014 Jean-Pierre Charras jp.charras at wanadoo.fr - * Copyright (C) 1992-2018 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 1992-2019 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 @@ -354,6 +354,9 @@ void GERBVIEW_FRAME::OnSelectActiveDCode( wxCommandEvent& event ) void GERBVIEW_FRAME::OnSelectActiveLayer( wxCommandEvent& event ) { SetActiveLayer( event.GetSelection(), true ); + + // Rebuild the DCode list in toolbar (but not the Layer Box) after change + syncLayerBox( false ); }