plugin testing has started
This commit is contained in:
parent
a9e2399669
commit
bbc626b750
|
@ -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()
|
||||||
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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
THROW_IO_ERROR( "Missing '$EndDIMENSION'" );
|
THROW_IO_ERROR( "Missing '$endCOTATION'" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue