#include textfile.h out of the WX_PRECOMP section (bcc)
authorBart A.M. Jourquin <bart.jourquin@fucam.ac.be>
Thu, 10 Feb 2000 08:36:51 +0000 (08:36 +0000)
committerBart A.M. Jourquin <bart.jourquin@fucam.ac.be>
Thu, 10 Feb 2000 08:36:51 +0000 (08:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index d739372196d8d6a67700a52046b15a9b995b9e70..dd097a54f59e34a444ecfca5b9e6ea0ba76fe610 100644 (file)
@@ -31,9 +31,9 @@
     #include "wx/dcclient.h"
     #include "wx/settings.h"
     #include "wx/log.h"
-    #include "wx/textfile.h"
 #endif
 
+#include "wx/textfile.h"
 #include "wx/generic/grid.h"
 
 // ----------------------------------------------------------------------------
@@ -3226,7 +3226,8 @@ void wxGrid::StringToLines( const wxString& value, wxArrayString& lines )
 {
     int startPos = 0;
     int pos;
-    wxString eol = wxTextFile::GetEOL( wxTextFileType_Unix );
+    wxTextFile tf;
+    wxString eol =  wxTextFile::GetEOL( wxTextFileType_Unix );
     wxString tVal = wxTextFile::Translate( value, wxTextFileType_Unix );
     
     while ( startPos < (int)tVal.Length() )