From d5df0fd545e534fc7bbd4b492834cf1fa1f365a9 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 23 May 2010 06:57:54 +0000 Subject: [PATCH] Fix incorrect setting of float values in the style editor introduced in 7a29bffb847ce2e2f877ddf773aec4afb821018b Originally committed to SVN as r4346. --- aegisub/src/validators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/validators.cpp b/aegisub/src/validators.cpp index 347a4b730..3cbb7bd36 100644 --- a/aegisub/src/validators.cpp +++ b/aegisub/src/validators.cpp @@ -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;