summaryrefslogtreecommitdiff
path: root/math/vtk/files/patch-vtkPNGWriter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'math/vtk/files/patch-vtkPNGWriter.cxx')
-rw-r--r--math/vtk/files/patch-vtkPNGWriter.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/math/vtk/files/patch-vtkPNGWriter.cxx b/math/vtk/files/patch-vtkPNGWriter.cxx
new file mode 100644
index 000000000000..70dc6030ffeb
--- /dev/null
+++ b/math/vtk/files/patch-vtkPNGWriter.cxx
@@ -0,0 +1,20 @@
+--- IO/vtkPNGWriter.cxx.orig 2003-12-30 21:51:31.000000000 +0100
++++ IO/vtkPNGWriter.cxx 2012-05-05 09:43:24.000000000 +0200
+@@ -147,7 +147,7 @@
+ void vtkPNGWriteErrorFunction(png_structp png_ptr,
+ png_const_charp vtkNotUsed(error_msg))
+ {
+- longjmp(png_ptr->jmpbuf, 1);
++ longjmp(png_jmpbuf(png_ptr), 1);
+ }
+ }
+
+@@ -223,7 +223,7 @@
+ png_init_io(png_ptr, this->TempFP);
+ png_set_error_fn(png_ptr, png_ptr,
+ vtkPNGWriteErrorFunction, vtkPNGWriteWarningFunction);
+- if (setjmp(png_ptr->jmpbuf))
++ if (setjmp(png_jmpbuf(png_ptr)))
+ {
+ fclose(this->TempFP);
+ this->SetErrorCode(vtkErrorCode::OutOfDiskSpaceError);