From cb5df486e8cd118656501b51206ee9a8c8f94361 Mon Sep 17 00:00:00 2001 From: "Bart A.M. Jourquin" Date: Thu, 10 Feb 2000 08:36:51 +0000 Subject: [PATCH] #include textfile.h out of the WX_PRECOMP section (bcc) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index d739372196..dd097a54f5 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -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() ) -- 2.50.0