Repair GetFullRef() and use it when running Symbol Fields Table filtering.

(Previously GetFullRef() failed to add the number between the prefix letter
and the unit designator.)

Fixes https://gitlab.com/kicad/code/kicad/issues/11419
This commit is contained in:
Jeff Young 2022-04-19 19:19:47 +01:00
parent 08f15fe587
commit ffc28f23e5
2 changed files with 3 additions and 3 deletions

View File

@ -490,7 +490,7 @@ public:
SCH_REFERENCE ref = m_symbolsList[ i ];
if( !aFilter->GetValue().IsEmpty()
&& !WildCompareString( aFilter->GetValue(), ref.GetRef(), false ) )
&& !WildCompareString( aFilter->GetValue(), ref.GetFullRef(), false ) )
{
continue;
}

View File

@ -107,9 +107,9 @@ public:
wxString GetFullRef() const
{
if( GetSymbol()->GetUnitCount() > 1 )
return GetRef() + LIB_SYMBOL::SubReference( GetUnit() );
return GetRef() + GetRefNumber() + LIB_SYMBOL::SubReference( GetUnit() );
else
return GetRef();
return GetRef() + GetRefNumber();
}
wxString GetRefNumber() const