X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..fd85b0640ea48f66a27e5908930e9f004de698b6:/src/common/textfile.cpp diff --git a/src/common/textfile.cpp b/src/common/textfile.cpp index c4863f5bc3..8dff698c9b 100644 --- a/src/common/textfile.cpp +++ b/src/common/textfile.cpp @@ -217,8 +217,7 @@ bool wxTextFile::Open() // if it fails, it assumes the native type for our platform. wxTextFileType wxTextFile::GuessType() const { - // file should be opened and we must be in it's beginning - wxASSERT( m_file.IsOpened() && m_file.Tell() == 0 ); + wxASSERT( IsOpened() ); // scan the file lines size_t nUnix = 0, // number of '\n's alone