From 8ba694e6fdce7479e66b2ccfb4fe64f7981a9689 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 16 Jul 2018 12:02:20 +0200 Subject: [PATCH] eeschema: fix alias names in .dcm files Fixes: lp:1781761 * https://bugs.launchpad.net/kicad/+bug/1781761 --- eeschema/sch_legacy_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() )