X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/31528cd3cac75558beef4bce0ba21fd182a808ab..22d6efa851642c6a69174278fc50f712f41e2271:/src/generic/numdlgg.cpp diff --git a/src/generic/numdlgg.cpp b/src/generic/numdlgg.cpp index 90b4776656..21dcd5d23b 100644 --- a/src/generic/numdlgg.cpp +++ b/src/generic/numdlgg.cpp @@ -146,7 +146,7 @@ wxNumberEntryDialog::wxNumberEntryDialog(wxWindow *parent, // spin ctrl wxString valStr; - valStr.Printf("%lu", m_value); + valStr.Printf(_T("%lu"), m_value); m_spinctrl = new wxTextCtrl(this, -1, valStr, wxPoint(x + wPrompt + LAYOUT_X_MARGIN, y), wxSize(wText, hText)); @@ -168,7 +168,7 @@ wxNumberEntryDialog::wxNumberEntryDialog(wxWindow *parent, void wxNumberEntryDialog::OnOK(wxCommandEvent& event) { - if ( (sscanf(m_spinctrl->GetValue(), "%lu", &m_value) != 1) || + if ( (wxSscanf(m_spinctrl->GetValue(), _T("%lu"), &m_value) != 1) || (m_value < m_min) || (m_value > m_max) ) { // not a number or out of range