diff --git a/ChangeLog b/ChangeLog index 23895595dd..be4c56691a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-07-07 Sven Neumann + + * plug-ins/common/mng.c: applied a patch from S. Mukund that fixes + a problem with newer versions of libmng (bug #115544). + 2003-07-07 Michael Natterer * app/gui/Makefile.am diff --git a/plug-ins/common/mng.c b/plug-ins/common/mng.c index 14c8b4fa3c..c62a4884f4 100644 --- a/plug-ins/common/mng.c +++ b/plug-ins/common/mng.c @@ -472,19 +472,6 @@ mng_save_image (const gchar *filename, return 0; } - /* For now, we hardwire a comment */ - - if ((ret = - mng_putchunk_text (handle, strlen (MNG_TEXT_TITLE), MNG_TEXT_TITLE, 22, - "Created using The GIMP")) != MNG_NOERROR) - { - g_warning ("Unable to mng_putchunk_text() in mng_save_image()"); - mng_cleanup (&handle); - fclose (userdata->fp); - g_free (userdata); - return 0; - } - if ((num_layers > 1) && (mng_data.loop)) { if ((ret = @@ -519,6 +506,19 @@ mng_save_image (const gchar *filename, } + /* For now, we hardwire a comment */ + + if ((ret = + mng_putchunk_text (handle, strlen (MNG_TEXT_TITLE), MNG_TEXT_TITLE, 22, + "Created using The GIMP")) != MNG_NOERROR) + { + g_warning ("Unable to mng_putchunk_text() in mng_save_image()"); + mng_cleanup (&handle); + fclose (userdata->fp); + g_free (userdata); + return 0; + } + /* how do we get this to work? if (mng_data.bkgd)