From: Vadim Zeitlin Date: Wed, 2 Jan 2008 20:31:31 +0000 (+0000) Subject: allow creating empty ZIP archives (patch 1861030) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9d59b50a9fd3b18b749bef44aafd59583559d48a allow creating empty ZIP archives (patch 1861030) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/zipstrm.cpp b/src/common/zipstrm.cpp index c960f548e3..79c1c449e4 100644 --- a/src/common/zipstrm.cpp +++ b/src/common/zipstrm.cpp @@ -2287,7 +2287,7 @@ bool wxZipOutputStream::Close() { CloseEntry(); - if (m_lasterror == wxSTREAM_WRITE_ERROR || m_entries.size() == 0) { + if (m_lasterror == wxSTREAM_WRITE_ERROR) { wxFilterOutputStream::Close(); return false; }