]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/spinctrl.cpp
correction to last commit: don't test unsetenv() return value, it's void under Darwin
[wxWidgets.git] / src / msw / spinctrl.cpp
index a3c6e43a0e83a1bdabf4411887c889c316359205..39e32fbf709d6890613b7c4c3a28796cad72edf1 100644 (file)
@@ -462,7 +462,8 @@ void  wxSpinCtrl::SetValue(int val)
         // text control is currently empty, the spin button seems to be happy
         // to leave it like this, while we really want to always show the
         // current value in the control, so do it manually
-        ::SetWindowText(GetBuddyHwnd(), wxString::Format(_T("%d"), val));
+        ::SetWindowText(GetBuddyHwnd(),
+                        wxString::Format(_T("%d"), val).wx_str());
     }
 
     m_oldValue = GetValue();