Gerbview: minor fixes from master branch.
This commit is contained in:
parent
a77caa6baa
commit
3f32f0be9e
|
@ -259,7 +259,7 @@ bool EXCELLON_IMAGE::LoadFile( const wxString & aFullFileName )
|
|||
char* line = excellonReader.Line();
|
||||
char* text = StrPurge( line );
|
||||
|
||||
if( *text == ';' ) // comment: skip line
|
||||
if( *text == ';' || *text == 0 ) // comment or empty line: skip line
|
||||
continue;
|
||||
|
||||
if( m_State == EXCELLON_IMAGE::READ_HEADER_STATE )
|
||||
|
|
|
@ -206,9 +206,9 @@ bool GERBER_FILE_IMAGE::LoadGerberFile( const wxString& aFullFileName )
|
|||
break;
|
||||
|
||||
default:
|
||||
text++;
|
||||
msg.Printf( wxT("Unexpected symbol <%c>"), *text );
|
||||
AddMessageToList( msg );
|
||||
text++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue