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:
parent
08f15fe587
commit
ffc28f23e5
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue