Gerbview: minor fixes from master branch.

This commit is contained in:
jean-pierre charras 2018-11-10 09:29:21 +01:00
parent a77caa6baa
commit 3f32f0be9e
2 changed files with 2 additions and 2 deletions

View File

@ -259,7 +259,7 @@ bool EXCELLON_IMAGE::LoadFile( const wxString & aFullFileName )
char* line = excellonReader.Line(); char* line = excellonReader.Line();
char* text = StrPurge( line ); char* text = StrPurge( line );
if( *text == ';' ) // comment: skip line if( *text == ';' || *text == 0 ) // comment or empty line: skip line
continue; continue;
if( m_State == EXCELLON_IMAGE::READ_HEADER_STATE ) if( m_State == EXCELLON_IMAGE::READ_HEADER_STATE )

View File

@ -206,9 +206,9 @@ bool GERBER_FILE_IMAGE::LoadGerberFile( const wxString& aFullFileName )
break; break;
default: default:
text++;
msg.Printf( wxT("Unexpected symbol <%c>"), *text ); msg.Printf( wxT("Unexpected symbol <%c>"), *text );
AddMessageToList( msg ); AddMessageToList( msg );
text++;
break; break;
} }
} }