Remove conversion from wxString using FROM_UTF8() when loading symbols.

A conversion from wxString using FROM_UTF8() was inadvertently used when
loading and enumerating symbols from the legacy plugin.  This conversion
would break any non-ascii characters in the symbol name.

Fixes lp:1664642

https://bugs.launchpad.net/kicad/+bug/1664642
This commit is contained in:
Wayne Stambaugh 2017-02-16 14:02:47 -05:00
parent 7cd72d6ffb
commit ccbdb41186
1 changed files with 2 additions and 2 deletions

View File

@ -3425,7 +3425,7 @@ void SCH_LEGACY_PLUGIN::EnumerateSymbolLib( wxArrayString& aAliasNameList,
const LIB_ALIAS_MAP& aliases = m_cache->m_aliases;
for( LIB_ALIAS_MAP::const_iterator it = aliases.begin(); it != aliases.end(); ++it )
aAliasNameList.Add( FROM_UTF8( it->first.c_str() ) );
aAliasNameList.Add( it->first );
}
@ -3438,7 +3438,7 @@ LIB_ALIAS* SCH_LEGACY_PLUGIN::LoadSymbol( const wxString& aLibraryPath, const wx
cacheLib( aLibraryPath );
LIB_ALIAS_MAP::const_iterator it = m_cache->m_aliases.find( TO_UTF8( aAliasName ) );
LIB_ALIAS_MAP::const_iterator it = m_cache->m_aliases.find( aAliasName );
if( it == m_cache->m_aliases.end() )
return NULL;