From 817b3d0e78fa6c1e3d862e8a7464be8aa66ccd80 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 4 Jun 2009 08:23:32 +0000 Subject: [PATCH] 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 --- src/common/imagpng.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/common/imagpng.cpp b/src/common/imagpng.cpp index 33c53657d8..83446867ad 100644 --- a/src/common/imagpng.cpp +++ b/src/common/imagpng.cpp @@ -689,9 +689,6 @@ bool wxPNGHandler::SaveFile( wxImage *image, wxOutputStream& stream, bool verbos ? image->GetOptionInt(wxIMAGE_OPTION_PNG_BITDEPTH) : 8; - wxASSERT_MSG( iBitDepth == 8 || iBitDepth == 16, - _T("PNG bit depth must be 8 or 16") ); - bool bHasAlpha = image->HasAlpha(); bool bHasMask = image->HasMask(); bool bUseAlpha = bHasAlpha || bHasMask; -- 2.45.2