Loading eeschema/eeschema_config.cpp +2 −0 Original line number Original line Diff line number Diff line Loading @@ -710,6 +710,8 @@ void SCH_EDIT_FRAME::SaveSettings() m_TemplateFieldNames.Format( &sf, 0 ); m_TemplateFieldNames.Format( &sf, 0 ); D(printf("saving formatted template fieldnames:'%s'\n", sf.GetString().c_str() );) wxString record = FROM_UTF8( sf.GetString().c_str() ); wxString record = FROM_UTF8( sf.GetString().c_str() ); record.Replace( wxT("\n"), wxT(""), true ); // strip all newlines record.Replace( wxT("\n"), wxT(""), true ); // strip all newlines record.Replace( wxT(" "), wxT(" "), true ); // double space to single record.Replace( wxT(" "), wxT(" "), true ); // double space to single Loading eeschema/lib_field.cpp +5 −1 Original line number Original line Diff line number Diff line Loading @@ -631,8 +631,12 @@ void LIB_FIELD::SetName( const wxString& aName ) // Mandatory field names are fixed. // Mandatory field names are fixed. // So what? Why should the low level code be in charge of such a policy issue? // So what? Why should the low level code be in charge of such a policy issue? if( m_id < MANDATORY_FIELDS ) // Besides, m_id is a relic that is untrustworthy now. if( m_id >=0 && m_id < MANDATORY_FIELDS ) { D(printf( "trying to set a MANDATORY_FIELD's name\n" );) return; return; } if( m_name != aName ) if( m_name != aName ) { { Loading eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp +1 −1 File changed.Contains only whitespace changes. Show changes Loading
eeschema/eeschema_config.cpp +2 −0 Original line number Original line Diff line number Diff line Loading @@ -710,6 +710,8 @@ void SCH_EDIT_FRAME::SaveSettings() m_TemplateFieldNames.Format( &sf, 0 ); m_TemplateFieldNames.Format( &sf, 0 ); D(printf("saving formatted template fieldnames:'%s'\n", sf.GetString().c_str() );) wxString record = FROM_UTF8( sf.GetString().c_str() ); wxString record = FROM_UTF8( sf.GetString().c_str() ); record.Replace( wxT("\n"), wxT(""), true ); // strip all newlines record.Replace( wxT("\n"), wxT(""), true ); // strip all newlines record.Replace( wxT(" "), wxT(" "), true ); // double space to single record.Replace( wxT(" "), wxT(" "), true ); // double space to single Loading
eeschema/lib_field.cpp +5 −1 Original line number Original line Diff line number Diff line Loading @@ -631,8 +631,12 @@ void LIB_FIELD::SetName( const wxString& aName ) // Mandatory field names are fixed. // Mandatory field names are fixed. // So what? Why should the low level code be in charge of such a policy issue? // So what? Why should the low level code be in charge of such a policy issue? if( m_id < MANDATORY_FIELDS ) // Besides, m_id is a relic that is untrustworthy now. if( m_id >=0 && m_id < MANDATORY_FIELDS ) { D(printf( "trying to set a MANDATORY_FIELD's name\n" );) return; return; } if( m_name != aName ) if( m_name != aName ) { { Loading
eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp +1 −1 File changed.Contains only whitespace changes. Show changes