Fix bugs #775 and #776, missing initialisation of controls in Auto4 Lua dialogues. (Untested.)

Originally committed to SVN as r2335.
This commit is contained in:
Niels Martin Hansen 2008-09-10 14:56:29 +00:00
parent f89b9d6c43
commit aca234ebcc

View file

@ -418,7 +418,7 @@ nospin:
typedef wxValidator FloatTextValidator;
wxControl *Create(wxWindow *parent)
{
cw = new wxTextCtrl(parent, -1, text, wxDefaultPosition, wxDefaultSize, 0); //, FloatTextValidator());
cw = new wxTextCtrl(parent, -1, PrettyFloatF(value), wxDefaultPosition, wxDefaultSize, 0); //, FloatTextValidator());
cw->SetToolTip(hint);
return cw;
}
@ -543,6 +543,7 @@ nospin:
{
cw = new wxCheckBox(parent, -1, label);
cw->SetToolTip(hint);
static_cast<wxCheckBox*>(cw)->SetValue(value);
return cw;
}