]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/textfile.cpp
Removed unnecessary code from utilsunx.cpp
[wxWidgets.git] / src / common / textfile.cpp
index 3ab5dc94c307d37db837bfae00addc62a9780488..f10d5de5761495cc85e42da101ce1897c8d7439d 100644 (file)
@@ -80,6 +80,10 @@ wxString wxTextFile::Translate(const wxString& text, wxTextFileType type)
     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