Allow path separators in the sheet filename validator.

Fixes https://gitlab.com/kicad/code/kicad/issues/4374
This commit is contained in:
Jeff Young 2020-05-08 23:57:23 +01:00
parent acfa15c3d3
commit d645c22411
1 changed files with 1 additions and 3 deletions

View File

@ -47,9 +47,7 @@ SCH_FIELD_VALIDATOR::SCH_FIELD_VALIDATOR( bool aIsLibEditor, int aFieldId, wxSt
{ {
excludes += " "; excludes += " ";
} }
else if( ( aFieldId == VALUE && m_isLibEditor ) else if( ( aFieldId == VALUE && m_isLibEditor ) || aFieldId == SHEETNAME_V )
|| aFieldId == SHEETNAME_V
|| aFieldId == SHEETFILENAME_V )
{ {
excludes += " :/\\"; excludes += " :/\\";
} }