$OpenBSD: patch-src_wp_impexp_gtk_ie_impGraphic_GdkPixbuf_cpp,v 1.1 2011/07/08 20:38:00 naddy Exp $

Fix build with png-1.5.

--- src/wp/impexp/gtk/ie_impGraphic_GdkPixbuf.cpp.orig	Wed Jul  6 18:57:20 2011
+++ src/wp/impexp/gtk/ie_impGraphic_GdkPixbuf.cpp	Wed Jul  6 18:58:03 2011
@@ -185,7 +185,7 @@ UT_Error IE_ImpGraphic_GdkPixbuf::importGraphic(UT_Byt
 /** needed for the stejmp context */
 UT_Error IE_ImpGraphic_GdkPixbuf::_png_write(GdkPixbuf * pixbuf)
 {
-	if (setjmp(m_pPNG->jmpbuf))
+	if (setjmp(png_jmpbuf(m_pPNG)))
 	{
 		DELETEP(m_pPngBB);
 		png_destroy_write_struct(&m_pPNG, &m_pPNGInfo);
@@ -446,7 +446,7 @@ UT_Error IE_ImpGraphic_GdkPixbuf::Initialize_PNG(void)
 	 * the normal method of doing things with libpng).  REQUIRED unless you
 	 * set up your own error handlers in the png_create_read_struct() earlier.
 	 */
-	if (setjmp(m_pPNG->jmpbuf))
+	if (setjmp(png_jmpbuf(m_pPNG)))
 	{
 		/* Free all of the memory associated with the png_ptr and info_ptr */
 		png_destroy_write_struct(&m_pPNG, &m_pPNGInfo);
