applied a patch from S. Mukund that fixes a problem with newer versions of

2003-07-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mng.c: applied a patch from S. Mukund that fixes
	a problem with newer versions of libmng (bug #115544).
This commit is contained in:
Sven Neumann
2003-07-07 13:49:45 +00:00
committed by Sven Neumann
parent 8a6b5d0df8
commit 6b99ae0405
2 changed files with 18 additions and 13 deletions

View File

@ -1,3 +1,8 @@
2003-07-07 Sven Neumann <sven@gimp.org>
* 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 <mitch@gimp.org>
* app/gui/Makefile.am

View File

@ -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)