summaryrefslogtreecommitdiffstats
path: root/src/helper/png-write.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2011-10-29 20:34:00 +0000
committerJon A. Cruz <jon@joncruz.org>2011-10-29 20:34:00 +0000
commit7f48710afe4963d02b606a06fca489e8319c8789 (patch)
tree23d743ab968635686846a5f4b3edc9ae28e230c2 /src/helper/png-write.cpp
parentfix usage of iterator when iterator's erase function is used (Bug #812018) (diff)
downloadinkscape-7f48710afe4963d02b606a06fca489e8319c8789.tar.gz
inkscape-7f48710afe4963d02b606a06fca489e8319c8789.zip
Updating use of libpng jump buffer. Fixes bug #721029.
Fixed bugs: - https://launchpad.net/bugs/721029 (bzr r10707)
Diffstat (limited to 'src/helper/png-write.cpp')
-rw-r--r--src/helper/png-write.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/png-write.cpp b/src/helper/png-write.cpp
index 24da697c1..992c7b886 100644
--- a/src/helper/png-write.cpp
+++ b/src/helper/png-write.cpp
@@ -166,8 +166,8 @@ sp_png_write_rgba_striped(SPDocument *doc,
/* Set error handling. REQUIRED if you aren't supplying your own
* error hadnling functions in the png_create_write_struct() call.
*/
- if (setjmp(png_ptr->jmpbuf)) {
- /* If we get here, we had a problem reading the file */
+ if (setjmp(png_jmpbuf(png_ptr))) {
+ // If we get here, we had a problem reading the file
fclose(fp);
png_destroy_write_struct(&png_ptr, &info_ptr);
return false;