On Tuesday, 18 Jul 2000, [EMAIL PROTECTED] wrote:

> Attached is a patch file for gif.c that fixes a bug that made a dialog pop
> up when running noninteractively, which was messing up my scripts.
> 
> It was written against 1.1.23 and 3.0.2 of gif.c in plug-ins/common/.
> 
> If someone with the right access could run this patch on the source tree
> it would probably help someone else out someday.

I've put in the following fix into CVS which should get rid of the
dialog in the non-interactive case.

--- plug-ins/common/gif.c~      Thu Jun  8 18:05:27 2000
+++ plug-ins/common/gif.c       Tue Jul 18 21:32:07 2000
@@ -805,7 +805,9 @@
 
          /* Image has illegal bounds - ask the user what it wants to do */
 
-         if (badbounds_dialog())
+         /* Do the crop if we can't talk to the user, or if we asked
+          * the user and they said yes. */
+         if ((run_mode == RUN_NONINTERACTIVE) || badbounds_dialog ())
            {
              gimp_run_procedure("gimp_crop", &nreturn_vals,
                                 PARAM_IMAGE, image_ID,

Austin

Reply via email to