]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagpng.cpp
Added ComputeHistogram
[wxWidgets.git] / src / common / imagpng.cpp
index 898bc0e5222a92b31ab15b6aa683fe85c9ee713b..6a71a8c263383aecf003037b487399a89daab170 100644 (file)
@@ -53,9 +53,7 @@
 // wxPNGHandler
 //-----------------------------------------------------------------------------
 
-#if !USE_SHARED_LIBRARIES
 IMPLEMENT_DYNAMIC_CLASS(wxPNGHandler,wxImageHandler)
-#endif
 
 #if wxUSE_LIBPNG
 
@@ -167,6 +165,7 @@ bool wxPNGHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose
     {
         int transp = 0;
         png_read_image( png_ptr, lines );
+        png_read_end( png_ptr, info_ptr );
         png_destroy_read_struct( &png_ptr, &info_ptr, (png_infopp) NULL );
         unsigned char *ptr = image->GetData();
         if ((color_type == PNG_COLOR_TYPE_GRAY) ||