Commit 6ff4b76e authored by g_harland's avatar g_harland

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

parent 4ba6060b
...@@ -340,7 +340,12 @@ void WinEDA_SetColorsFrame::UpdateLayerSettings() ...@@ -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 )
......
...@@ -6,7 +6,7 @@ ...@@ -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"
......
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