kicad2step: Handle quoted layers
Quoted layers are parsed by kicad2step as strings but were only expecting symbols. This threw an error when exporting.
This commit is contained in:
parent
2498da2745
commit
214d8d3703
|
@ -323,9 +323,14 @@ bool KICADPCB::parseLayers( SEXPR::SEXPR* data )
|
||||||
wxLogMessage( "%s\n", ostr.str().c_str() );
|
wxLogMessage( "%s\n", ostr.str().c_str() );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
std::string ref;
|
||||||
|
|
||||||
m_layersNames[child->GetChild( 1 )->GetSymbol()] =
|
if( child->GetChild( 1 )->IsSymbol() )
|
||||||
child->GetChild( 0 )->GetInteger();
|
ref = child->GetChild( 1 )->GetSymbol();
|
||||||
|
else
|
||||||
|
ref = child->GetChild( 1 )->GetString();
|
||||||
|
|
||||||
|
m_layersNames[ref] = child->GetChild( 0 )->GetInteger();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue