From 2600bb31c0cc4cd0dd182f8e7f988444e33ebcfe Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 9 Dec 2011 18:43:34 +0100 Subject: [PATCH] Pcbnew: GPcb footprint import: fix incorrect pad size. --- pcbnew/gpcb_exchange.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/gpcb_exchange.cpp b/pcbnew/gpcb_exchange.cpp index 1afcb29533..41955441fd 100644 --- a/pcbnew/gpcb_exchange.cpp +++ b/pcbnew/gpcb_exchange.cpp @@ -402,7 +402,7 @@ bool MODULE::Read_GPCB_Descr( const wxString& CmpFullFileName ) Pad->SetOrientation( wxRound( angle ) ); Pad->m_Pos.x = (ibuf[0] + ibuf[2]) / 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_Pos += m_Pos;