Fix eeschema/eelayer.cpp and eeschema/eelayer.h so that they now compile OK

This commit is contained in:
g_harland 2007-10-23 23:59:33 +00:00
parent 4ba6060beb
commit 6ff4b76eda
2 changed files with 7 additions and 2 deletions

View File

@ -340,7 +340,12 @@ void WinEDA_SetColorsFrame::UpdateLayerSettings()
} }
// Update whether grid is actually displayed or otherwise // Update whether grid is actually displayed or otherwise
m_Parent->m_Draw_Grid = g_ShowGrid = m_ShowGrid->GetValue(); // m_Parent->m_Draw_Grid = g_ShowGrid = m_ShowGrid->GetValue();
// The previous command compiles OK, but to prevent a warning
// from being generated when the Linux version is being compiled,
// the next two commands are provided instead.
g_ShowGrid = m_ShowGrid->GetValue();
m_Parent->m_Draw_Grid = g_ShowGrid;
// Update color of background // Update color of background
if( m_SelBgColor->GetSelection() == 0 ) if( m_SelBgColor->GetSelection() == 0 )

View File

@ -6,7 +6,7 @@
#define _EELAYER_H_ #define _EELAYER_H_
#if defined(__GNUG__) && !defined(__APPLE__) #if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "annotate_dialog.cpp" #pragma interface "eelayer.cpp"
#endif #endif
#include "wx/statline.h" #include "wx/statline.h"