X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..1f6189acd0ebe8e27c4a71cc39b709784de26024:/src/common/docview.cpp diff --git a/src/common/docview.cpp b/src/common/docview.cpp index c001cac43a..b0e10bdc68 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -2085,7 +2085,7 @@ void wxFileHistory::Load(wxConfigBase& config) wxString buf; buf.Printf(wxT("file%d"), m_fileHistoryN+1); wxString historyFile; - while ((m_fileHistoryN <= m_fileMaxFiles) && config.Read(buf, &historyFile) && (historyFile != wxT(""))) + while ((m_fileHistoryN < m_fileMaxFiles) && config.Read(buf, &historyFile) && (historyFile != wxT(""))) { m_fileHistory[m_fileHistoryN] = copystring((const wxChar*) historyFile); m_fileHistoryN ++;