fixed wxTextFile::GuessType assertion

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2000-12-20 23:06:40 +00:00
parent 98c9fc2d06
commit 4d5cd6e05d

View File

@@ -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