layer count changing fix

This commit is contained in:
dickelbeck 2009-02-17 21:54:14 +00:00
parent 4e348a58fe
commit a27dcae61e
2 changed files with 15 additions and 1 deletions

View File

@ -5,6 +5,16 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
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>
================================================================================
++pcbnew:
@ -16,7 +26,7 @@ email address.
2009-Feb-09 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
++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.

View File

@ -162,7 +162,11 @@ bool WinEDA_BasePcbFrame::Clear_Pcb( bool query )
g_DesignSettings.m_TrackWidthHistory[0] = g_DesignSettings.m_CurrentTrackWidth;
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
*/
Zoom_Automatique( TRUE );