← Back to team overview

kicad-developers team mailing list archive

Re: KiCad BZR3707 - Compilation failed

 

On Sun, Sep 02, 2012 at 12:09:54PM -0000, Kerusey Karyu wrote:
> Your current commit generate an error under Windows:

Try this. No idea why shouldn't work since an enum is a long too, but maybe wx 2.9 changed the wxConfig declarations (seems that the same was needed in the following line too)

=== modified file 'common/drawframe.cpp'
--- common/drawframe.cpp        2012-09-02 12:06:47 +0000
+++ common/drawframe.cpp        2012-09-02 13:07:15 +0000
@@ -568,7 +568,7 @@
     EDA_BASE_FRAME::SaveSettings();
     cfg->Write( m_FrameName + CursorShapeEntryKeyword, m_cursorShape );
     cfg->Write( m_FrameName + ShowGridEntryKeyword, IsGridVisible() );
-    cfg->Write( m_FrameName + GridColorEntryKeyword, GetGridColor() );
+    cfg->Write( m_FrameName + GridColorEntryKeyword, ( long ) GetGridColor() );
     cfg->Write( m_FrameName + LastGridSizeId, ( long ) m_LastGridSizeId );
 }


-- 
Lorenzo Marcantonio
Logos Srl