mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
Fix bug with duplicate columns in Edit Symbol Fields.
This commit is contained in:
parent
1a22918795
commit
01c5bdfb8f
@ -699,8 +699,10 @@ void DIALOG_FIELDS_EDITOR_GLOBAL::LoadFieldNames()
|
||||
for( auto fieldName : userFieldNames )
|
||||
AddField( fieldName, true, false );
|
||||
|
||||
// Add any templateFieldNames which aren't already present in the userFieldNames
|
||||
for( auto templateFieldName : m_parent->GetTemplateFieldNames() )
|
||||
AddField( templateFieldName.m_Name, false, false );
|
||||
if( userFieldNames.count( templateFieldName.m_Name ) == 0 )
|
||||
AddField( templateFieldName.m_Name, false, false );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user