Fix backwards display of ${DNP}
${DNP} displayed "DNP" when DNP was cleared, and "" when DNP was set
This commit is contained in:
parent
04c82a42eb
commit
4a0a5f2265
|
@ -1247,7 +1247,7 @@ bool SCH_SYMBOL::ResolveTextVar( wxString* token, int aDepth ) const
|
||||||
}
|
}
|
||||||
else if( token->IsSameAs( wxT( "DNP" ) ) )
|
else if( token->IsSameAs( wxT( "DNP" ) ) )
|
||||||
{
|
{
|
||||||
*token = this->GetDNP() ? wxT( "" ) : _( "DNP" );
|
*token = this->GetDNP() ? _( "DNP" ) : wxT( "" );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue