mirror of https://github.com/odrling/Aegisub
Fix incorrect setting of float values in the style editor introduced in 7a29bffb847ce2e2f877ddf773aec4afb821018b
Originally committed to SVN as r4346.
This commit is contained in:
parent
f7f59e5e1d
commit
d5df0fd545
|
@ -213,7 +213,7 @@ void NumValidator::OnChar(wxKeyEvent& event) {
|
||||||
///
|
///
|
||||||
bool NumValidator::TransferToWindow() {
|
bool NumValidator::TransferToWindow() {
|
||||||
wxTextCtrl *ctrl = (wxTextCtrl*) GetWindow();
|
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));
|
else ctrl->SetValue(wxString::Format(_T("%d"),iValue));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue