Fix Bug #1521282 (footprint wizard for SOIC ICs generates a wrong position pin mark)

This commit is contained in:
jean-pierre charras 2015-12-09 17:11:32 +01:00
parent 030c84d55d
commit 04271893ff
1 changed files with 6 additions and 1 deletions

View File

@ -232,6 +232,11 @@ class SOICWizard(RowedFootprint):
# |1 2 3 4 |
# \---------
self.draw.BoxWithDiagonalAtCorner(0, 0, ssx*2, ssy*2, pcbnew.FromMM(1))
setback = pcbnew.FromMM(0.8)
if setback > ssy:
setback = ssy
self.draw.BoxWithDiagonalAtCorner(0, 0, ssx*2, ssy*2, setback, self.draw.flipY)
SOICWizard().register()