]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
added .c_str() to wxStrlcpy() calls to fix wxUSE_STL build (closes #10252)
[wxWidgets.git] / src / msw / listctrl.cpp
index 4e2c3de06887bd0b9828507e98c9804d0ab09897..d7bac52606a3872eae19737a5a3ec3b667de83ac 100644 (file)
@@ -2486,7 +2486,7 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
                     if ( lvi.mask & LVIF_TEXT )
                     {
                         wxString text = OnGetItemText(item, lvi.iSubItem);
-                        wxStrlcpy(lvi.pszText, text, lvi.cchTextMax);
+                        wxStrlcpy(lvi.pszText, text.c_str(), lvi.cchTextMax);
                     }
 
                     // see comment at the end of wxListCtrl::GetColumn()