Commit bbc626b7 authored by Dick Hollenbeck's avatar Dick Hollenbeck

plugin testing has started

parent a9e23996
...@@ -1737,13 +1737,18 @@ void KICAD_PLUGIN::loadPCB_TEXT() ...@@ -1737,13 +1737,18 @@ void KICAD_PLUGIN::loadPCB_TEXT()
GRTextHorizJustifyType hj; GRTextHorizJustifyType hj;
switch( *hJustify ) if( hJustify )
{ {
default: switch( *hJustify )
case 'C': hj = GR_TEXT_HJUSTIFY_CENTER; break; {
case 'L': hj = GR_TEXT_HJUSTIFY_LEFT; break; default:
case 'R': hj = GR_TEXT_HJUSTIFY_RIGHT; break; case 'C': hj = GR_TEXT_HJUSTIFY_CENTER; break;
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 ); pcbtxt->SetHorizJustify( hj );
...@@ -2204,7 +2209,7 @@ void KICAD_PLUGIN::loadDIMENSION() ...@@ -2204,7 +2209,7 @@ void KICAD_PLUGIN::loadDIMENSION()
const char* data; const char* data;
char* line = m_reader->Line(); char* line = m_reader->Line();
if( TESTLINE( "$EndDIMENSION" ) ) if( TESTLINE( "$endCOTATION" ) )
{ {
m_board->Add( dim.release(), ADD_APPEND ); m_board->Add( dim.release(), ADD_APPEND );
return; // preferred exit return; // preferred exit
...@@ -2387,7 +2392,7 @@ void KICAD_PLUGIN::loadDIMENSION() ...@@ -2387,7 +2392,7 @@ void KICAD_PLUGIN::loadDIMENSION()
} }
} }
THROW_IO_ERROR( "Missing '$EndDIMENSION'" ); THROW_IO_ERROR( "Missing '$endCOTATION'" );
} }
......
...@@ -104,7 +104,7 @@ protected: ...@@ -104,7 +104,7 @@ protected:
/** /**
* Function degParse * 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 * 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 * tenths of degrees to degrees in floating point. This function is the complement of
* fmtDEG(). One has to know what the other is doing. * fmtDEG(). One has to know what the other is doing.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment