Commit 739dbd6a authored by dickelbeck's avatar dickelbeck

layer count changing fix

parent a27dcae6
...@@ -10,8 +10,9 @@ email address. ...@@ -10,8 +10,9 @@ email address.
++pcbnew ++pcbnew
Loading a module into the module editor was changing the layer count 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 ) of a loaded board. This is because void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
called Clear_PCB() which then set the global calls bool WinEDA_BasePcbFrame::Clear_Pcb( bool query )
g_DesignSettings.m_CopperLayerCount = 2; 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. We need a layer count in each board, not as a global. For now, comment out the assignment in initpcb.cpp.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment