fix 723793

This commit is contained in:
Dick Hollenbeck 2011-02-24 10:20:11 -06:00
parent 36773d6677
commit c303d3f8bd
1 changed files with 3 additions and 1 deletions

View File

@ -622,7 +622,9 @@ wxString LIB_FIELD::GetName(bool aTranslate) const
void LIB_FIELD::SetName( const wxString& aName ) void LIB_FIELD::SetName( const wxString& aName )
{ {
// Mandatory field names are fixed. // Mandatory field names are fixed.
if( m_id > MANDATORY_FIELDS )
// So what? Why should the low level code be in charge of such a policy issue?
if( m_id < MANDATORY_FIELDS )
return; return;
if( m_name != aName ) if( m_name != aName )