Pcbnew: GPcb footprint import: fix incorrect pad size.
This commit is contained in:
parent
9461f16281
commit
2600bb31c0
|
@ -402,7 +402,7 @@ bool MODULE::Read_GPCB_Descr( const wxString& CmpFullFileName )
|
||||||
Pad->SetOrientation( wxRound( angle ) );
|
Pad->SetOrientation( wxRound( angle ) );
|
||||||
Pad->m_Pos.x = (ibuf[0] + ibuf[2]) / 2;
|
Pad->m_Pos.x = (ibuf[0] + ibuf[2]) / 2;
|
||||||
Pad->m_Pos.y = (ibuf[1] + ibuf[3]) / 2;
|
Pad->m_Pos.y = (ibuf[1] + ibuf[3]) / 2;
|
||||||
Pad->m_Size.x = wxRound( hypot( (double)delta.x, (double)delta.y ) );
|
Pad->m_Size.x = wxRound( hypot( (double)delta.x, (double)delta.y ) ) + ibuf[4];
|
||||||
Pad->m_Size.y = ibuf[4];
|
Pad->m_Size.y = ibuf[4];
|
||||||
Pad->m_Pos += m_Pos;
|
Pad->m_Pos += m_Pos;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue