Gerbview: handle unexpected invalid char
Attempting to print this as a char was causing wxWidgets to assert since some input is neither ASCII or valid UTF-8. Reproducable by trying to open zip files as gerber files from the command line.
This commit is contained in:
parent
c83f1ea1cd
commit
7043498875
|
@ -328,7 +328,7 @@ bool GERBER_FILE_IMAGE::LoadGerberFile( const wxString& aFullFileName )
|
|||
break;
|
||||
|
||||
default:
|
||||
msg.Printf( "Unexpected char 0x%2.2X <%c<", *text, *text );
|
||||
msg.Printf( "Unexpected char 0x%2.2X", *text );
|
||||
AddMessageToList( msg );
|
||||
text++;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue