gerbview fixes

This commit is contained in:
Brian F. G. Bidulock 2010-09-14 12:19:07 -05:00 committed by Dick Hollenbeck
parent 0ebe9878aa
commit f8100747c2
2 changed files with 3 additions and 3 deletions

View File

@ -1209,7 +1209,7 @@ bool GERBER::Execute_DCODE_Command( WinEDA_GerberFrame* frame,
pcb->m_Track.Append( track ); pcb->m_Track.Append( track );
D( printf( "R:%p\n", track ); ) D( printf( "R:%p\n", track ); )
fillRoundFlashTRACK( track, dcode, activeLayer, fillRoundFlashTRACK( track, dcode, activeLayer,
m_CurrentPos, diameter, exposure ); curPos, diameter, exposure );
} }
break; break;

View File

@ -537,9 +537,9 @@ bool GetEndOfBlock( char buff[GERBER_BUFZ], char*& text, FILE* gerber_file )
static bool CheckForLineEnd( char buff[GERBER_BUFZ], char*& text, FILE* fp ) static bool CheckForLineEnd( char buff[GERBER_BUFZ], char*& text, FILE* fp )
{ {
while( *text == '\n' || !*text ) while( *text == '\n' || *text == '\r' || !*text )
{ {
if( *text == '\n' ) if( *text == '\n' || *text == '\r' )
++text; ++text;
if( !*text ) if( !*text )