diff --git a/include/wx/textbuf.h b/include/wx/textbuf.h index 75c69f2272..3dec00b608 100644 --- a/include/wx/textbuf.h +++ b/include/wx/textbuf.h @@ -106,7 +106,7 @@ public: // you're using "direct access" i.e. GetLine() size_t GetCurrentLine() const { return m_nCurLine; } void GoToLine(size_t n) { m_nCurLine = n; } - bool Eof() const { return (m_aLines.size() == 0 || m_nCurLine == m_aLines.size() - 1); } + bool Eof() const { return m_nCurLine == m_aLines.size(); } // these methods allow more "iterator-like" traversal of the list of // lines, i.e. you may write something like: