Fix for locales that set , as a decimal point (which is incompatible with python scripting), also fixed the m_Reference encapsulation in module to Reference()
This commit is contained in:
parent
76e21c28a4
commit
1477210b67
|
@ -184,6 +184,10 @@ void FOOTPRINT_WIZARD_FRAME::ParametersUpdated( wxGridEvent& event )
|
||||||
dValue = From_User_Unit( g_UserUnit, dValue);
|
dValue = From_User_Unit( g_UserUnit, dValue);
|
||||||
|
|
||||||
value.Printf( wxT("%lf"), 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(",",".");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,8 +79,8 @@ class FPCFootprintWizard(FootprintWizardPlugin):
|
||||||
size_shld = wxSize(shl_width,shl_height)
|
size_shld = wxSize(shl_width,shl_height)
|
||||||
|
|
||||||
module.SetReference("FPC"+str(pads)) # give it a reference name
|
module.SetReference("FPC"+str(pads)) # give it a reference name
|
||||||
module.m_Reference.SetPos0(wxPointMM(-1,-2))
|
module.Reference().SetPos0(wxPointMM(-1,-2))
|
||||||
module.m_Reference.SetPosition(wxPointMM(-1,-2))
|
module.Reference().SetPosition(wxPointMM(-1,-2))
|
||||||
|
|
||||||
# create a pad array and add it to the module
|
# create a pad array and add it to the module
|
||||||
for n in range (0,pads):
|
for n in range (0,pads):
|
||||||
|
|
|
@ -165,8 +165,8 @@ class TouchSliderWizard(FootprintWizardPlugin):
|
||||||
step_length = float(touch_length) / float(steps)
|
step_length = float(touch_length) / float(steps)
|
||||||
|
|
||||||
module.SetReference("TS"+str(steps)) # give it a reference name
|
module.SetReference("TS"+str(steps)) # give it a reference name
|
||||||
module.m_Reference.SetPos0(wxPointMM(-1,-2))
|
module.Reference().SetPos0(wxPointMM(-1,-2))
|
||||||
module.m_Reference.SetPosition(wxPointMM(-1,-2))
|
module.Reference().SetPosition(wxPointMM(-1,-2))
|
||||||
|
|
||||||
# starting pad
|
# starting pad
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue