From 799d6690c054c80ecbdd423ea48e2d7e860bfb1f Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 6 Jul 2021 11:33:41 +0100 Subject: [PATCH] Only convert overbar syntax on names, refdes and text. In particular, don't try and convert filenames which may be in windows format. Fixes https://gitlab.com/kicad/code/kicad/issues/git --- common/plugins/altium/altium_parser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/plugins/altium/altium_parser.cpp b/common/plugins/altium/altium_parser.cpp index ffcc064782..4e57d88fae 100644 --- a/common/plugins/altium/altium_parser.cpp +++ b/common/plugins/altium/altium_parser.cpp @@ -157,7 +157,8 @@ std::map ALTIUM_PARSER::ReadProperties() else value = wxString( valueS.c_str(), wxConvISO8859_1 ); - value = AltiumPropertyToKiCadString( value.Trim() ); + if( key == wxT( "Designator" ) || key == wxT( "Name" ) || key == wxT( "Text" ) ) + value = AltiumPropertyToKiCadString( value.Trim() ); kv.insert( { canonicalKey, value.Trim() } ); }