From 4d5cd6e05d2093758a1137f43f771ad9268017cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 20 Dec 2000 23:06:40 +0000 Subject: [PATCH] fixed wxTextFile::GuessType assertion git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/textfile.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.45.2