Do not hardcode altium file extension length

This commit is contained in:
WhiteChairFromIkea 2021-03-04 09:47:25 +02:00 committed by Ian McInerney
parent 8f50d1f86e
commit ff23f4324a
1 changed files with 1 additions and 1 deletions

View File

@ -1986,7 +1986,7 @@ void SCH_ALTIUM_PLUGIN::ParseFileName( const std::map<wxString, wxString>& aProp
// If last symbols are ".sChDoC", change them to ".kicad_sch"
if( ( elem.text.Right( GetFileExtension().length() + 1 ).Lower() ) == ( "." + GetFileExtension().Lower() ))
{
elem.text.RemoveLast( 6 );
elem.text.RemoveLast( GetFileExtension().length() );
elem.text += KiCadSchematicFileExtension;
}