fix error message in legacy_plugin
This commit is contained in:
parent
dea9dd2361
commit
2810f5a5fe
|
@ -1165,7 +1165,9 @@ void LEGACY_PLUGIN::loadPAD( MODULE* aModule )
|
||||||
// sscanf( PtLine, " %s %d %d %d %d %d", BufCar, &m_Size.x, &m_Size.y, &m_DeltaSize.x, &m_DeltaSize.y, &m_Orient );
|
// sscanf( PtLine, " %s %d %d %d %d %d", BufCar, &m_Size.x, &m_Size.y, &m_DeltaSize.x, &m_DeltaSize.y, &m_Orient );
|
||||||
while( isSpace( *data ) )
|
while( isSpace( *data ) )
|
||||||
++data;
|
++data;
|
||||||
int padshape = *data++;
|
|
||||||
|
unsigned char padchar = (unsigned char) *data++;
|
||||||
|
int padshape;
|
||||||
|
|
||||||
BIU size_x = biuParse( data, &data );
|
BIU size_x = biuParse( data, &data );
|
||||||
BIU size_y = biuParse( data, &data );
|
BIU size_y = biuParse( data, &data );
|
||||||
|
@ -1173,7 +1175,7 @@ void LEGACY_PLUGIN::loadPAD( MODULE* aModule )
|
||||||
BIU delta_y = biuParse( data, &data );
|
BIU delta_y = biuParse( data, &data );
|
||||||
double orient = degParse( data );
|
double orient = degParse( data );
|
||||||
|
|
||||||
switch( padshape )
|
switch( padchar )
|
||||||
{
|
{
|
||||||
case 'C': padshape = PAD_CIRCLE; break;
|
case 'C': padshape = PAD_CIRCLE; break;
|
||||||
case 'R': padshape = PAD_RECT; break;
|
case 'R': padshape = PAD_RECT; break;
|
||||||
|
@ -1181,8 +1183,8 @@ void LEGACY_PLUGIN::loadPAD( MODULE* aModule )
|
||||||
case 'T': padshape = PAD_TRAPEZOID; break;
|
case 'T': padshape = PAD_TRAPEZOID; break;
|
||||||
default:
|
default:
|
||||||
m_error.Printf( _( "Unknown padshape '%c=0x%02x' on line:%d of module:'%s'" ),
|
m_error.Printf( _( "Unknown padshape '%c=0x%02x' on line:%d of module:'%s'" ),
|
||||||
(unsigned char) padshape,
|
padchar,
|
||||||
(unsigned char) padshape,
|
padchar,
|
||||||
m_reader->LineNumber(),
|
m_reader->LineNumber(),
|
||||||
GetChars( aModule->GetLibRef() )
|
GetChars( aModule->GetLibRef() )
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue