Fix UTF8 conversion issue

The ternary needs a wxString object for both sides to reference the UTF8
functions

Fixes https://gitlab.com/kicad/code/kicad/issues/5554
This commit is contained in:
Seth Hillbrand 2020-09-08 10:07:09 -07:00
parent f7b30bf397
commit cfcc3bbc0a
1 changed files with 1 additions and 1 deletions

View File

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