Disallow text var references in reference designators.Disallow text var references in reference designators.Disallow text var references in reference designators.Disallow text var references in reference designators.Disallow text var references in reference designators.Disallow text var references in reference designators.Disallow text var references in reference designators.Disallow text var references in reference designators.Disallow text var references in reference designators.

Fixes https://gitlab.com/kicad/code/kicad/issues/5293
This commit is contained in:
Jeff Young 2020-08-21 23:07:23 +01:00
parent 23c8123ac9
commit a3a36ed4d6
1 changed files with 4 additions and 0 deletions

View File

@ -170,6 +170,10 @@ bool SCH_FIELD_VALIDATOR::Validate( wxWindow *aParent )
msg.Printf( fieldCharError, badChars );
}
else if( m_fieldId == REFERENCE && val.Contains( wxT( "${" ) ) )
{
msg.Printf( _( "The reference designator cannot contain text variable references" ) );
}
if ( !msg.empty() )
{