diff --git a/src/common/wfstream.cpp b/src/common/wfstream.cpp index 1f1600deff..c912b92eaf 100644 --- a/src/common/wfstream.cpp +++ b/src/common/wfstream.cpp @@ -227,7 +227,7 @@ wxFileStream::wxFileStream(const wxString& fileName) bool wxFileStream::IsOk() const { - return wxStreamBase::IsOk() && wxFileInputStream::m_file->IsOpened(); + return wxFileOutputStream::IsOk() && wxFileInputStream::m_file->IsOpened(); } #endif //wxUSE_FILE