plugin testing has started

This commit is contained in:
Dick Hollenbeck 2011-12-15 10:48:36 -06:00
parent a9e2399669
commit bbc626b750
2 changed files with 13 additions and 8 deletions

View File

@ -1737,6 +1737,8 @@ void KICAD_PLUGIN::loadPCB_TEXT()
GRTextHorizJustifyType hj;
if( hJustify )
{
switch( *hJustify )
{
default:
@ -1744,6 +1746,9 @@ void KICAD_PLUGIN::loadPCB_TEXT()
case 'L': hj = GR_TEXT_HJUSTIFY_LEFT; break;
case 'R': hj = GR_TEXT_HJUSTIFY_RIGHT; break;
}
}
else
hj = GR_TEXT_HJUSTIFY_CENTER;
pcbtxt->SetHorizJustify( hj );
@ -2204,7 +2209,7 @@ void KICAD_PLUGIN::loadDIMENSION()
const char* data;
char* line = m_reader->Line();
if( TESTLINE( "$EndDIMENSION" ) )
if( TESTLINE( "$endCOTATION" ) )
{
m_board->Add( dim.release(), ADD_APPEND );
return; // preferred exit
@ -2387,7 +2392,7 @@ void KICAD_PLUGIN::loadDIMENSION()
}
}
THROW_IO_ERROR( "Missing '$EndDIMENSION'" );
THROW_IO_ERROR( "Missing '$endCOTATION'" );
}

View File

@ -104,7 +104,7 @@ protected:
/**
* Function degParse
* parses an ASCII decimal floating point value which is certainy an angle. This
* parses an ASCII decimal floating point value which is certainly an angle. This
* is a dedicated function for encapsulating support for the migration from
* tenths of degrees to degrees in floating point. This function is the complement of
* fmtDEG(). One has to know what the other is doing.