From: David Surovell Date: Sun, 22 Jan 2006 21:59:00 +0000 (+0000) Subject: applied patch 1411688 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ce61519034b5a404aabf114d68c68aac4662100c applied patch 1411688 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/imagpng.cpp b/src/common/imagpng.cpp index fcb4b0a0e6..98d1979572 100644 --- a/src/common/imagpng.cpp +++ b/src/common/imagpng.cpp @@ -168,14 +168,6 @@ void PNGLINKAGEMODE wx_PNG_stream_writer( png_structp png_ptr, png_bytep data, WX_PNG_INFO(png_ptr)->stream.out->Write(data, length); } -// from pngerror.c -// so that the libpng doesn't send anything on stderr -void -PNGLINKAGEMODE wx_png_error(png_structp WXUNUSED(png_ptr), png_const_charp message) -{ - wxLogFatalError( wxString::FromAscii(message) ); -} - void PNGLINKAGEMODE wx_png_warning(png_structp png_ptr, png_const_charp message) { @@ -184,6 +176,17 @@ PNGLINKAGEMODE wx_png_warning(png_structp png_ptr, png_const_charp message) wxLogWarning( wxString::FromAscii(message) ); } +// from pngerror.c +// so that the libpng doesn't send anything on stderr +void +PNGLINKAGEMODE wx_png_error(png_structp WXUNUSED(png_ptr), png_const_charp message) +{ + // JS: deliver it to wx_png_warning and don't perform any more actions: + // libpng will jump back to the calling function (LoadFile and SaveFile) + // and allow it to handle the error + wx_png_warning(NULL, message); +} + } // extern "C" // ----------------------------------------------------------------------------