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* 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 )
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue