Try to fix bug 639683 : Illegal reference strings are now detected and replaced by default prefix for old schematics or rejected in schematic edition.
This commit is contained in:
@@ -179,11 +179,18 @@ create a new power component with the new value." ), GetChars( entry->GetName()
|
||||
aField->m_Size.x = aField->m_Size.y = m_TextFieldSize;
|
||||
}
|
||||
|
||||
aField->m_Text = newtext;
|
||||
|
||||
if( fieldNdx == REFERENCE )
|
||||
{
|
||||
component->SetRef( GetSheet(), newtext );
|
||||
// Test is reference is acceptable:
|
||||
if( SCH_COMPONENT::IsReferenceStringValid( newtext ) )
|
||||
{
|
||||
component->SetRef( GetSheet(), newtext );
|
||||
aField->m_Text = newtext;
|
||||
}
|
||||
else
|
||||
{
|
||||
DisplayError( this, _( "Illegal reference string! No change" ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user