Fix incorrect setting of float values in the style editor introduced in 7a29bffb847ce2e2f877ddf773aec4afb821018b

Originally committed to SVN as r4346.
This commit is contained in:
Thomas Goyne 2010-05-23 06:57:54 +00:00
parent f7f59e5e1d
commit d5df0fd545

View file

@ -213,7 +213,7 @@ void NumValidator::OnChar(wxKeyEvent& event) {
///
bool NumValidator::TransferToWindow() {
wxTextCtrl *ctrl = (wxTextCtrl*) GetWindow();
if (isFloat) ctrl->SetValue(wxString::Format(_T("%g"),iValue));
if (isFloat) ctrl->SetValue(wxString::Format(_T("%g"),fValue));
else ctrl->SetValue(wxString::Format(_T("%d"),iValue));
return true;