Altium: remove illegal chars from library name.
(cherry picked from commit 8a4f203963
)
This commit is contained in:
parent
fc0911f55e
commit
07c9aee1ea
|
@ -30,9 +30,10 @@
|
||||||
|
|
||||||
LIB_ID AltiumToKiCadLibID( const wxString& aLibName, const wxString& aLibReference )
|
LIB_ID AltiumToKiCadLibID( const wxString& aLibName, const wxString& aLibReference )
|
||||||
{
|
{
|
||||||
|
wxString libName = LIB_ID::FixIllegalChars( aLibName, true );
|
||||||
wxString libReference = EscapeString( aLibReference, CTX_LIBID );
|
wxString libReference = EscapeString( aLibReference, CTX_LIBID );
|
||||||
|
|
||||||
wxString key = !aLibName.empty() ? ( aLibName + ":" + libReference ) : libReference;
|
wxString key = !libName.empty() ? ( libName + ":" + libReference ) : libReference;
|
||||||
|
|
||||||
LIB_ID libId;
|
LIB_ID libId;
|
||||||
libId.Parse( key, true );
|
libId.Parse( key, true );
|
||||||
|
|
Loading…
Reference in New Issue