]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/treectrl.cpp
correction to last commit: don't test unsetenv() return value, it's void under Darwin
[wxWidgets.git] / src / msw / treectrl.cpp
index f3733657d919e55438873dba35c8695b4cffc7db..fac8ddbaeeebe070ca79e5e5807e571ccc58c2cb 100644 (file)
@@ -934,7 +934,7 @@ void wxTreeCtrl::SetItemText(const wxTreeItemId& item, const wxString& text)
     {
         if ( item == m_idEdited )
         {
-            ::SetWindowText(hwndEdit, text);
+            ::SetWindowText(hwndEdit, text.wx_str());
         }
     }
 }