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:
parent
d29f39dce4
commit
4a1e2644a4
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue