allow creating empty ZIP archives (patch 1861030)

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

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