Commit a27dcae6 authored by dickelbeck's avatar dickelbeck

layer count changing fix

parent 4e348a58
...@@ -5,6 +5,16 @@ Started 2007-June-11 ...@@ -5,6 +5,16 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with Please add newer entries at the top, list the date and your name with
email address. email address.
2009-Feb-17 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
++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;
We need a layer count in each board, not as a global. For now, comment out the assignment in initpcb.cpp.
2009-Feb-17 Jean-Pierre Charras <jean-pierre.charras@inpg.fr> 2009-Feb-17 Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================ ================================================================================
++pcbnew: ++pcbnew:
...@@ -16,7 +26,7 @@ email address. ...@@ -16,7 +26,7 @@ email address.
2009-Feb-09 UPDATE Dick Hollenbeck <dick@softplc.com> 2009-Feb-09 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================ ================================================================================
++eeschema ++eeschema
Changed dialog_edit_label so that is is UIpolicies.txt compliant. Proper case Changed dialog_edit_label so that it is UIpolicies.txt compliant. Proper case
on window titles, resizeable dialog border, minimum text width handling. on window titles, resizeable dialog border, minimum text width handling.
......
...@@ -162,7 +162,11 @@ bool WinEDA_BasePcbFrame::Clear_Pcb( bool query ) ...@@ -162,7 +162,11 @@ bool WinEDA_BasePcbFrame::Clear_Pcb( bool query )
g_DesignSettings.m_TrackWidthHistory[0] = g_DesignSettings.m_CurrentTrackWidth; g_DesignSettings.m_TrackWidthHistory[0] = g_DesignSettings.m_CurrentTrackWidth;
g_DesignSettings.m_ViaSizeHistory[0] = g_DesignSettings.m_CurrentViaSize; g_DesignSettings.m_ViaSizeHistory[0] = g_DesignSettings.m_CurrentViaSize;
/* NO, this is a global setting, and changing it here changes a loaded board's layer count when loading a module in the module editor since
the module editor calls this when loading an existing module.
g_DesignSettings.m_CopperLayerCount = 2; // Default copper layers count set to 2: double layer board g_DesignSettings.m_CopperLayerCount = 2; // Default copper layers count set to 2: double layer board
*/
Zoom_Automatique( TRUE ); Zoom_Automatique( TRUE );
......
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