Was missing png_read_end
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -167,6 +167,7 @@ bool wxPNGHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose
|
|||||||
{
|
{
|
||||||
int transp = 0;
|
int transp = 0;
|
||||||
png_read_image( png_ptr, lines );
|
png_read_image( png_ptr, lines );
|
||||||
|
png_read_end( png_ptr, info_ptr );
|
||||||
png_destroy_read_struct( &png_ptr, &info_ptr, (png_infopp) NULL );
|
png_destroy_read_struct( &png_ptr, &info_ptr, (png_infopp) NULL );
|
||||||
unsigned char *ptr = image->GetData();
|
unsigned char *ptr = image->GetData();
|
||||||
if ((color_type == PNG_COLOR_TYPE_GRAY) ||
|
if ((color_type == PNG_COLOR_TYPE_GRAY) ||
|
||||||
|
Reference in New Issue
Block a user