projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some little doc tweaks
[wxWidgets.git]
/
src
/
common
/
textfile.cpp
diff --git
a/src/common/textfile.cpp
b/src/common/textfile.cpp
index c4863f5bc368721b5f42f22bf81e86c963da5e82..8dff698c9bc31a80057057b3f18729756ba50de2 100644
(file)
--- 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
{
// 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
// scan the file lines
size_t nUnix = 0, // number of '\n's alone