Fixed error messages for saving jpeg files so its quite again.

(before I simplified it to return the result of the call to
imb_savejpeg turns out that makes it a little more verbose)

Kent
This commit is contained in:
Kent Mein 2003-12-09 19:25:30 +00:00
parent ed30332365
commit da566a1102

@ -69,7 +69,8 @@ short IMB_saveiff(struct ImBuf *ibuf,char *naam,int flags)
/* Put formats that take a filename here */
if (IS_jpg(ibuf)) {
return imb_savejpeg(ibuf, naam, flags);
if(imb_savejpeg(ibuf, naam, flags)) return (0);
else return (TRUE);
}
file = open(naam, O_BINARY | O_RDWR | O_CREAT | O_TRUNC, 0666);