Altium: remove illegal chars from library name.

(cherry picked from commit 8a4f203963)
This commit is contained in:
Alex Shvartzkop 2023-08-16 00:45:57 +03:00
parent fc0911f55e
commit 07c9aee1ea
1 changed files with 2 additions and 1 deletions

View File

@ -30,9 +30,10 @@
LIB_ID AltiumToKiCadLibID( const wxString& aLibName, const wxString& aLibReference )
{
wxString libName = LIB_ID::FixIllegalChars( aLibName, true );
wxString libReference = EscapeString( aLibReference, CTX_LIBID );
wxString key = !aLibName.empty() ? ( aLibName + ":" + libReference ) : libReference;
wxString key = !libName.empty() ? ( libName + ":" + libReference ) : libReference;
LIB_ID libId;
libId.Parse( key, true );