X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd59841c337611841bf6e9317f2730d48163b08c..908d45166b3dbe175746fd8145e331e805193aba:/user/wxLayout/wxlparser.cpp diff --git a/user/wxLayout/wxlparser.cpp b/user/wxLayout/wxlparser.cpp index e078883b7c..d9cfe9b3fe 100644 --- a/user/wxLayout/wxlparser.cpp +++ b/user/wxLayout/wxlparser.cpp @@ -34,6 +34,8 @@ inline static bool IsEndOfLine(const char *p, int mode) void wxLayoutImportText(wxLayoutList *list, wxString const &str, int withflag) { + if(str.Length() == 0) + return; char * cptr = (char *)str.c_str(); // string gets changed only temporarily const char * begin = cptr; char backup;