allow creating empty ZIP archives (patch 1861030)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-01-02 20:31:31 +00:00
parent d9359369af
commit 9d59b50a9f

View File

@@ -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;
}