Symbol Fields Table: fix duplicated fields
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13687
This commit is contained in:
parent
f28339ded8
commit
207b8d3273
|
@ -672,10 +672,9 @@ public:
|
||||||
SCH_FIELD* destField = symbol.FindField( srcName );
|
SCH_FIELD* destField = symbol.FindField( srcName );
|
||||||
|
|
||||||
// Add a not existing field if it has a value for this symbol
|
// Add a not existing field if it has a value for this symbol
|
||||||
bool createField = !destField && !srcValue.IsEmpty();
|
bool createField =
|
||||||
|
!destField
|
||||||
if( alg::contains( m_userAddedFields, srcName ) )
|
&& ( !srcValue.IsEmpty() || alg::contains( m_userAddedFields, srcName ) );
|
||||||
createField = true;
|
|
||||||
|
|
||||||
if( createField )
|
if( createField )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue