continue;
AppendImageStack(images);
FinalizeImageSettings(image_info,image,MagickFalse);
- iterations=0;
- if (i == (ssize_t) argc)
- iterations=image->iterations;
+ iterations=image->iterations;
image_list=CloneImageList(image,exception);
if (image_list == (Image *) NULL)
ThrowDisplayException(ResourceLimitError,"MemoryAllocationFailed",
}
if (resource_info.window_id != (char *) NULL)
state|=ExitState;
- if ((iterations != 0) && (++iteration == (ssize_t) iterations))
- state|=ExitState;
+ if (iterations != 0)
+ {
+ if (++iteration == (ssize_t) iterations)
+ state|=ExitState;
+ i=0;
+ }
if (LocaleCompare(filename,"-") == 0)
state|=ExitState;
RemoveAllImageStack();
i++;
if (i == (ssize_t) argc)
ThrowDisplayException(OptionError,"MissingArgument",option);
- type=ParseCommandOption(MagickAlphaChannelOptions,MagickFalse,argv[i]);
+ type=ParseCommandOption(MagickAlphaChannelOptions,MagickFalse,
+ argv[i]);
if (type < 0)
- ThrowDisplayException(OptionError,"UnrecognizedAlphaChannelOption",
- argv[i]);
+ ThrowDisplayException(OptionError,
+ "UnrecognizedAlphaChannelOption",argv[i]);
break;
}
if (LocaleCompare("antialias",option+1) == 0)