]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/PlatWX.cpp
give the panel 3D grey colour by default: as it's not a native control, we must give...
[wxWidgets.git] / src / stc / PlatWX.cpp
index 99ce5a7a4ccf7925c34680e9d34d02aa403f4504..46d478e701323eac44c006e730d70cd14ffa64bc 100644 (file)
@@ -1233,7 +1233,7 @@ wxString stc2wx(const char* str, size_t len)
     strncpy(buffer, str, len);
     buffer[len]=0;
 
-    wxString cstr(buffer, wxConvUTF8);
+    wxString cstr(buffer, wxConvUTF8, len);
 
     delete[] buffer;
     return cstr;