diff --git a/pcbnew/specctra.cpp b/pcbnew/specctra.cpp index 03e5193c91..080c37269a 100644 --- a/pcbnew/specctra.cpp +++ b/pcbnew/specctra.cpp @@ -99,7 +99,7 @@ void SPECCTRA_DB::buildLayerMaps( BOARD* aBoard ) int SPECCTRA_DB::findLayerName( const std::string& aLayerName ) const { - for( LAYER_NUM i=FIRST_LAYER; iwire_type = T_protect; // @todo, this should be configurable LAYER_NUM kiLayer = track->GetLayer(); - LAYER_NUM pcbLayer = kicadLayer2pcb[kiLayer]; + int pcbLayer = kicadLayer2pcb[kiLayer]; path = new PATH( wire ); diff --git a/pcbnew/specctra_import.cpp b/pcbnew/specctra_import.cpp index 945bcd2fbc..78ad143edd 100644 --- a/pcbnew/specctra_import.cpp +++ b/pcbnew/specctra_import.cpp @@ -224,7 +224,7 @@ static wxPoint mapPt( const POINT& aPoint, UNIT_RES* aResolution ) TRACK* SPECCTRA_DB::makeTRACK( PATH* aPath, int aPointIndex, int aNetcode ) throw( IO_ERROR ) { - LAYER_NUM layerNdx = findLayerName( aPath->layer_id ); + int layerNdx = findLayerName( aPath->layer_id ); if( layerNdx == -1 ) {