diff --git a/pcbnew/scripting/plugins/FPC_(SMD_type)_footprintwizard.py b/pcbnew/scripting/plugins/FPC_(SMD_type)_footprintwizard.py index 3cad25da10..0cace0dfb1 100644 --- a/pcbnew/scripting/plugins/FPC_(SMD_type)_footprintwizard.py +++ b/pcbnew/scripting/plugins/FPC_(SMD_type)_footprintwizard.py @@ -94,7 +94,7 @@ class FPCFootprintWizard(FootprintWizardPlugin): module.Value().SetTextPosition(module.Value().GetPos0()) module.Value().SetSize( size_text ) - fpid = pcbnew.FPID(self.module.GetReference()) #the name in library + fpid = FPID(self.module.GetReference()) #the name in library module.SetFPID( fpid ) # create a pad array and add it to the module diff --git a/pcbnew/scripting/plugins/touch_slider_wizard.py b/pcbnew/scripting/plugins/touch_slider_wizard.py index e4e808b67c..a29f91398a 100644 --- a/pcbnew/scripting/plugins/touch_slider_wizard.py +++ b/pcbnew/scripting/plugins/touch_slider_wizard.py @@ -184,7 +184,7 @@ class TouchSliderWizard(FootprintWizardPlugin): self.AddStrip(pos,steps,band_width,step_length,touch_clearance) pos+=wxPoint(0,band_width) - fpid = pcbnew.FPID(self.module.GetReference()) #the name in library + fpid = FPID(self.module.GetReference()) #the name in library module.SetFPID( fpid ) def register():