From 9bde5a64823b923cd7363e11bb936e0c976c81ea Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 25 Feb 2012 08:55:14 +0100 Subject: [PATCH] Pcbnew: fix compil issue. --- pcbnew/kicad_plugin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/kicad_plugin.cpp b/pcbnew/kicad_plugin.cpp index 521d7c083e..19e870ae49 100644 --- a/pcbnew/kicad_plugin.cpp +++ b/pcbnew/kicad_plugin.cpp @@ -2167,7 +2167,7 @@ void KICAD_PLUGIN::loadZONE_CONTAINER() BIU clearance = biuParse( line + SZ( "ZClearance" ), &data ); char* padoption = strtok( (char*) data, delims ); // data: " I" - int popt; + ZoneConnection popt; switch( *padoption ) { case 'I': popt = PAD_IN_ZONE; break; @@ -2181,7 +2181,7 @@ void KICAD_PLUGIN::loadZONE_CONTAINER() } zc->SetZoneClearance( clearance ); - zc->SetPadOption( popt ); + zc->SetPadConnection( popt ); } else if( TESTLINE( "ZMinThickness" ) ) @@ -3449,7 +3449,7 @@ void KICAD_PLUGIN::saveZONE_CONTAINER( const ZONE_CONTAINER* me ) const // Save pad option and clearance char padoption; - switch( me->GetPadOption() ) + switch( me->GetPadConnection() ) { default: case PAD_IN_ZONE: padoption = 'I'; break;