Fix return type from ternary operator (fixes #5554)

This commit is contained in:
Simon Richter 2020-09-08 18:49:23 +02:00 committed by Ian McInerney
parent 08828667ec
commit aa24fe2880
1 changed files with 4 additions and 1 deletions

View File

@ -86,9 +86,12 @@ bool NETLIST_EXPORTER_ORCADPCB2::WriteNetlist( const wxString& aOutFileName,
footprint = comp->GetFootprint( &sheet );
footprint.Replace( wxT( " " ), wxT( "_" ) );
if( footprint.IsEmpty() )
footprint = wxT( "$noname" );
ret |= fprintf( f, " ( %s %s",
TO_UTF8( sheet.PathAsString() + comp->m_Uuid.AsString() ),
TO_UTF8( footprint.IsEmpty() ? wxString( "$noname" ) : footprint ) );
TO_UTF8( footprint ) );
field = comp->GetRef( &sheet );