]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
Corrections to config checking; tweaking wxUniv's setup.h; added fix to makeb32.env
[wxWidgets.git] / src / msw / listctrl.cpp
index 1d73b061d652a29b3b5aba4285845c1e35ce70b1..3bd2d2cfa833e709e4c8454725d8347cfef19505 100644 (file)
@@ -1992,7 +1992,8 @@ static void wxConvertToMSWListItem(const wxListCtrl *ctrl, wxListItem& info, LV_
         }
         else
         {
-            lvItem.pszText = info.m_text;
+            // pszText is not const, hence the cast
+            lvItem.pszText = (wxChar *)info.m_text.c_str();
             if ( lvItem.pszText )
                 lvItem.cchTextMax = info.m_text.Length();
             else