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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue