]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xml/xml.cpp
showing a bevel button for a multiline label (is not multline on the OS level, but...
[wxWidgets.git] / src / xml / xml.cpp
index fc447594a556607a3c16daacf53a216fa90fcb77..80c76829fceb212a123e9cbd1aeffd425d8a457b 100644 (file)
@@ -370,7 +370,7 @@ inline static wxString CharToString(wxMBConv *conv,
         return str;
     }
     else
         return str;
     }
     else
-        return wxString(s, len);
+        return wxString(s, len != wxSTRING_MAXLEN ? len : strlen(s));
 #endif
 }
 
 #endif
 }