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:
@@ -2287,7 +2287,7 @@ bool wxZipOutputStream::Close()
|
|||||||
{
|
{
|
||||||
CloseEntry();
|
CloseEntry();
|
||||||
|
|
||||||
if (m_lasterror == wxSTREAM_WRITE_ERROR || m_entries.size() == 0) {
|
if (m_lasterror == wxSTREAM_WRITE_ERROR) {
|
||||||
wxFilterOutputStream::Close();
|
wxFilterOutputStream::Close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user