layer count changing fix

This commit is contained in:
dickelbeck 2009-02-17 21:55:12 +00:00
parent a27dcae61e
commit 739dbd6a6b
1 changed files with 3 additions and 2 deletions

View File

@ -10,8 +10,9 @@ email address.
++pcbnew
Loading a module into the module editor was changing the layer count
of a loaded board. This is because void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
called Clear_PCB() which then set the global
g_DesignSettings.m_CopperLayerCount = 2;
calls bool WinEDA_BasePcbFrame::Clear_Pcb( bool query )
which then sets the global g_DesignSettings.m_CopperLayerCount = 2;
This is terrible.
We need a layer count in each board, not as a global. For now, comment out the assignment in initpcb.cpp.