removed assert checking that bit depth is 8 or 16 as the code appears to work correctly for 1, 2 and4 bit depths as well (closes #10840)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-06-04 08:23:32 +00:00
parent 8e7da4267d
commit 817b3d0e78

View File

@@ -689,9 +689,6 @@ bool wxPNGHandler::SaveFile( wxImage *image, wxOutputStream& stream, bool verbos
? image->GetOptionInt(wxIMAGE_OPTION_PNG_BITDEPTH) ? image->GetOptionInt(wxIMAGE_OPTION_PNG_BITDEPTH)
: 8; : 8;
wxASSERT_MSG( iBitDepth == 8 || iBitDepth == 16,
_T("PNG bit depth must be 8 or 16") );
bool bHasAlpha = image->HasAlpha(); bool bHasAlpha = image->HasAlpha();
bool bHasMask = image->HasMask(); bool bHasMask = image->HasMask();
bool bUseAlpha = bHasAlpha || bHasMask; bool bUseAlpha = bHasAlpha || bHasMask;