From 7e256c24fbe8c432b4c122d0fa2b60a59aba94f2 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Sat, 24 Jul 1999 06:50:40 +0000 Subject: [PATCH] Unicode fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/numdlgg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.45.2