Pcbnew: fix broken board ratsnest visibility storage behavior.
* The board ratsnest visibility state was being saved in both the board file and the Pcbnew configuration files causing visibility state issues. Use the board file to save the board ratsnest visibility state. * Remove all of the board ratsnest save visibility state to configuration file code. * Add code to set the board modified property when layer visibility states change to give the user a chance to save the state in the board file. * Some minor code cleaning and coding policy fixes.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* Copyright (C) 2012 Jean-Pierre Charras, [email protected]
|
||||
* Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <[email protected]>
|
||||
* Copyright (C) 2012 Wayne Stambaugh <[email protected]>
|
||||
* Copyright (C) 1992-2012 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 2012-2015 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
|
||||
@@ -114,6 +114,7 @@ void PCB_EDIT_FRAME::OnUpdateScriptingConsoleState( wxUpdateUIEvent& aEvent )
|
||||
aEvent.Check( pythonPanelShown );
|
||||
}
|
||||
|
||||
|
||||
void PCB_EDIT_FRAME::OnUpdateZoneDisplayStyle( wxUpdateUIEvent& aEvent )
|
||||
{
|
||||
int selected = aEvent.GetId() - ID_TB_OPTIONS_SHOW_ZONES;
|
||||
|
||||
Reference in New Issue
Block a user