Fix backwards display of ${DNP}

${DNP} displayed "DNP" when DNP was cleared, and "" when DNP was set
This commit is contained in:
Graham Keeth 2023-02-01 11:25:54 -05:00
parent 04c82a42eb
commit 4a0a5f2265
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }