]> git.saurik.com Git - wxWidgets.git/commitdiff
we don't have to call png_set_error_fn() any more after last commit
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 27 Oct 2004 23:07:11 +0000 (23:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 27 Oct 2004 23:07:11 +0000 (23:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/imagpng.cpp

index b2925a2a8c66f490845b12cd14b25400fb043135..deac2bc1c968618227ca145f8ae6e4143be99a4a 100644 (file)
@@ -529,8 +529,6 @@ wxPNGHandler::LoadFile(wxImage *image,
     if (!png_ptr)
         goto error;
 
-    png_set_error_fn(png_ptr, (png_voidp)NULL, wx_png_error, wx_png_warning);
-
     // NB: please see the comment near wxPNGInfoStruct declaration for
     //     explanation why this line is mandatory
     png_set_read_fn( png_ptr, &wxinfo, wx_PNG_stream_reader);
@@ -645,8 +643,6 @@ bool wxPNGHandler::SaveFile( wxImage *image, wxOutputStream& stream, bool verbos
         return false;
     }
 
-    png_set_error_fn(png_ptr, (png_voidp)NULL, wx_png_error, wx_png_warning);
-
     png_infop info_ptr = png_create_info_struct(png_ptr);
     if (info_ptr == NULL)
     {