diff --git a/pcbnew/footprint_wizard.cpp b/pcbnew/footprint_wizard.cpp index 2e24701091..e2221895c3 100644 --- a/pcbnew/footprint_wizard.cpp +++ b/pcbnew/footprint_wizard.cpp @@ -184,6 +184,10 @@ void FOOTPRINT_WIZARD_FRAME::ParametersUpdated( wxGridEvent& event ) dValue = From_User_Unit( g_UserUnit, dValue); value.Printf( wxT("%lf"), dValue ); + + // If our locale is set to use , for decimal point, just change it + // to be scripting compatible + value.Replace(",","."); } diff --git a/pcbnew/scripting/plugins/fpc_footprint_wizard.py b/pcbnew/scripting/plugins/fpc_footprint_wizard.py index 838c838d43..efc8455d34 100644 --- a/pcbnew/scripting/plugins/fpc_footprint_wizard.py +++ b/pcbnew/scripting/plugins/fpc_footprint_wizard.py @@ -79,8 +79,8 @@ class FPCFootprintWizard(FootprintWizardPlugin): size_shld = wxSize(shl_width,shl_height) module.SetReference("FPC"+str(pads)) # give it a reference name - module.m_Reference.SetPos0(wxPointMM(-1,-2)) - module.m_Reference.SetPosition(wxPointMM(-1,-2)) + module.Reference().SetPos0(wxPointMM(-1,-2)) + module.Reference().SetPosition(wxPointMM(-1,-2)) # create a pad array and add it to the module for n in range (0,pads): diff --git a/pcbnew/scripting/plugins/touch_slider_wizard.py b/pcbnew/scripting/plugins/touch_slider_wizard.py index d09ad87fdd..4a179d573a 100644 --- a/pcbnew/scripting/plugins/touch_slider_wizard.py +++ b/pcbnew/scripting/plugins/touch_slider_wizard.py @@ -165,8 +165,8 @@ class TouchSliderWizard(FootprintWizardPlugin): step_length = float(touch_length) / float(steps) module.SetReference("TS"+str(steps)) # give it a reference name - module.m_Reference.SetPos0(wxPointMM(-1,-2)) - module.m_Reference.SetPosition(wxPointMM(-1,-2)) + module.Reference().SetPos0(wxPointMM(-1,-2)) + module.Reference().SetPosition(wxPointMM(-1,-2)) # starting pad