From f214a576298d21c8dc2def4365d6677476bfa4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nick=20=C3=98stergaard?= Date: Wed, 12 Feb 2014 08:59:56 +0100 Subject: [PATCH] Fix wrong numbering in the QFP footprint wizard python script --- pcbnew/scripting/plugins/qfp_wizard.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pcbnew/scripting/plugins/qfp_wizard.py b/pcbnew/scripting/plugins/qfp_wizard.py index 8bd5600b6b..2df89e113b 100644 --- a/pcbnew/scripting/plugins/qfp_wizard.py +++ b/pcbnew/scripting/plugins/qfp_wizard.py @@ -109,18 +109,22 @@ class QFPWizard(pcbnew.FootprintWizardPlugin): pad_size = pad_size_left_right pad_pos_x = -(pad_horizontal_pitch / 2) + pad_pos_y = (cur_pad % (num_pads / 4)) * pad_pitch - (side_length / 2) + if side == 2: pad_pos_x = -pad_pos_x + pad_pos_y = -pad_pos_y - pad_pos_y = (cur_pad % (num_pads / 4)) * pad_pitch - (side_length / 2) else: pad_size = pad_size_bottom_top pad_pos_x = (cur_pad % (num_pads / 4)) * pad_pitch - (side_length / 2) - pad_pos_y = -(pad_vertical_pitch / 2) + if side == 1: pad_pos_y = -pad_pos_y + else: + pad_pos_x = -pad_pos_x pad_pos = pcbnew.wxPoint(pad_pos_x, pad_pos_y)