Spice simulator: prevent double quoting library file names
Fixes: lp:1786559
* https://bugs.launchpad.net/kicad/+bug/1786559
(cherry-picked from commit f82b839d
)
This commit is contained in:
parent
a45a8e8797
commit
626f5ac45a
|
@ -405,7 +405,16 @@ void NETLIST_EXPORTER_PSPICE::UpdateDirectives( unsigned aCtl )
|
|||
wxString lib = directive.AfterFirst( ' ' );
|
||||
|
||||
if( !lib.IsEmpty() )
|
||||
{
|
||||
// Strip quotes if present
|
||||
if( ( lib.StartsWith( "\"" ) && lib.EndsWith( "\"" ) )
|
||||
|| ( lib.StartsWith( "'" ) && lib.EndsWith( "'" ) ) )
|
||||
{
|
||||
lib = lib.Mid( 1, lib.Length() - 2 );
|
||||
}
|
||||
|
||||
m_libraries.insert( lib );
|
||||
}
|
||||
}
|
||||
else if( directive.StartsWith( ".title " ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue