not fail anyway, but it is cleaner this way)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6154
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( type == wxTextFileType_None )
return text;
if ( type == wxTextFileType_None )
return text;
+ // GRG: don't do anything either if it is empty
+ if ( text.IsEmpty() )
+ return text;
+
wxString eol = GetEOL(type), result;
// optimization: we know that the length of the new string will be about
wxString eol = GetEOL(type), result;
// optimization: we know that the length of the new string will be about