fix from matt wilson to check for the "save image with no layers bug"

-adrian
This commit is contained in:
Adrian Likins 1998-03-22 23:52:03 +00:00
parent 8048ce274b
commit 0e7f4859c8
2 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,9 @@ Sun Mar 22 18:27:57 EST 1998 Adrian Likins <adrian@gimp.org>
Matt Wilson (msw) to fix the crash with script-fu
pdbs in dbbrowser.
* app/fileops.c: another patch from matt, this one to
fix the bug with saving images with no layers.
Sun Mar 22 14:23:03 EST 1998 Adrian Likins <adrian@gimp.org>
* app/iscissors.c, app/tips_dialog.c, app/gradient.c,

View File

@ -762,6 +762,8 @@ file_save (int image_ID,
if ((gimage = gimage_get_ID (image_ID)) == NULL)
return FALSE;
if (gimage_active_drawable (gimage) == NULL)
return FALSE;
file_proc = save_file_proc;
if (!file_proc)