mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
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() {
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user