kicad2step was not accepting module names which are valid numbers.

Fixes: lp:1660841

https://bugs.launchpad.net/kicad/+bug/1660841
This commit is contained in:
Cirilo Bernardo 2017-02-02 09:53:01 +11:00 committed by Wayne Stambaugh
parent d29f39dce4
commit 4a1e2644a4
1 changed files with 3 additions and 4 deletions

View File

@ -81,13 +81,12 @@ bool KICADMODULE::Read( SEXPR::SEXPR* aEntry )
bool result = true;
for( size_t i = 1; i < nc && result; ++i )
for( size_t i = 2; i < nc && result; ++i )
{
child = aEntry->GetChild( i );
// skip the module name and the optional 'locked' attribute;
// due to the vagaries of the kicad version of sexpr, the
// name may be a Symbol or a String
// skip the optional 'locked' attribute; due to the vagaries of the
// kicad version of sexpr, the attribute may be a Symbol or a String
if( i <= 2 && ( child->IsSymbol() || child->IsString() ) )
continue;