Commit 6418163d authored by Lorenzo Marcantonio's avatar Lorenzo Marcantonio Committed by Dick Hollenbeck

Update to the GENCAD import export

parent 05faa369
...@@ -854,31 +854,41 @@ int D_PAD::Compare( const D_PAD* padref, const D_PAD* padcmp ) ...@@ -854,31 +854,41 @@ int D_PAD::Compare( const D_PAD* padref, const D_PAD* padcmp )
{ {
int diff; int diff;
if( (diff = padref->m_PadShape - padcmp->m_PadShape) ) if( diff = padref->m_PadShape - padcmp->m_PadShape)
return diff; return diff;
if( (diff = padref->m_Size.x - padcmp->m_Size.x) ) if( diff = padref->m_DrillShape - padcmp->m_DrillShape)
return diff; return diff;
if( (diff = padref->m_Size.y - padcmp->m_Size.y) ) if( diff = padref->m_Drill.x - padcmp->m_Drill.x )
return diff; return diff;
if( (diff = padref->m_Offset.x - padcmp->m_Offset.x) ) if( diff = padref->m_Drill.y - padcmp->m_Drill.y )
return diff; return diff;
if( (diff = padref->m_Offset.y - padcmp->m_Offset.y) ) if( diff = padref->m_Size.x - padcmp->m_Size.x )
return diff; return diff;
if( (diff = padref->m_DeltaSize.x - padcmp->m_DeltaSize.x) ) if( diff = padref->m_Size.y - padcmp->m_Size.y )
return diff; return diff;
if( (diff = padref->m_DeltaSize.y - padcmp->m_DeltaSize.y) ) if( diff = padref->m_Offset.x - padcmp->m_Offset.x )
return diff;
if( diff = padref->m_Offset.y - padcmp->m_Offset.y )
return diff;
if( diff = padref->m_DeltaSize.x - padcmp->m_DeltaSize.x )
return diff;
if( diff = padref->m_DeltaSize.y - padcmp->m_DeltaSize.y )
return diff; return diff;
// @todo check if export_gencad still works: // @todo check if export_gencad still works:
// specctra_export needs this, but maybe export_gencad does not. added on // specctra_export needs this, but maybe export_gencad does not.
// Jan 24 2008 by Dick. // Lorenzo: XXX no idea about specctra, but gencad need it to
if( ( diff = padref->m_layerMask - padcmp->m_layerMask ) ) // implement padstacks!
if( diff = padref->m_layerMask - padcmp->m_layerMask )
return diff; return diff;
return 0; return 0;
......
This diff is collapsed.
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