diff --git a/eeschema/sch_legacy_plugin.cpp b/eeschema/sch_legacy_plugin.cpp index f1a7fc0f69..4e644c32ba 100644 --- a/eeschema/sch_legacy_plugin.cpp +++ b/eeschema/sch_legacy_plugin.cpp @@ -2417,7 +2417,7 @@ void SCH_LEGACY_PLUGIN_CACHE::loadDocs() SCH_PARSE_ERROR( "$CMP command expected", reader, line ); parseUnquotedString( aliasName, reader, line, &line ); // Alias name. - LIB_ID::FixIllegalChars( aliasName, LIB_ID::ID_ALIAS ); + aliasName = LIB_ID::FixIllegalChars( aliasName, LIB_ID::ID_ALIAS ); LIB_ALIAS_MAP::iterator it = m_aliases.find( aliasName ); if( it == m_aliases.end() )