[Gridflow-cvs] [svn] commit: r6598 - /trunk/src/png.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Feb 9 19:01:20 EST 2011


Author: matju
Date: Wed Feb  9 19:01:19 2011
New Revision: 6598

Log:
->jmpbuf is deprecated (use png_jmpbuf instead)

Modified:
    trunk/src/png.cxx

Modified: trunk/src/png.cxx
==============================================================================
--- trunk/src/png.cxx (original)
+++ trunk/src/png.cxx Wed Feb  9 19:01:19 2011
@@ -48,7 +48,7 @@
 	if (!png) RAISE("!png");
 	info = png_create_info_struct(png);
 	if (!info) {if (png) png_destroy_write_struct(&png, NULL); RAISE("!info");}
-	if (setjmp(png->jmpbuf)) {png_destroy_write_struct(&png, &info); RAISE("png write error");}
+	if (setjmp(png_jmpbuf(png))) {png_destroy_write_struct(&png, &info); RAISE("png write error");}
 	png_init_io(png, f);
 	static int color_type[] = {
 		PNG_COLOR_TYPE_GRAY,



More information about the Gridflow-cvs mailing list