Skip to content
Permalink
Browse files Browse the repository at this point in the history
https://github.com/ImageMagick/ImageMagick/pull/34
  • Loading branch information
Cristy committed Sep 24, 2015
1 parent 52ec99e commit 5b4beba
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion MagickCore/constitute.c
Expand Up @@ -1272,7 +1272,14 @@ MagickExport MagickBooleanType WriteImages(const ImageInfo *image_info,
(void) CopyMagickString(write_info->magick,images->magick,MagickPathExtent);
p=images;
for ( ; GetNextImageInList(p) != (Image *) NULL; p=GetNextImageInList(p))
if (p->scene >= GetNextImageInList(p)->scene)
{
register Image
*next;

next=GetNextImageInList(p);
if (next == (Image *) NULL)
break;
if (p->scene >= next->scene)
{
register ssize_t
i;
Expand All @@ -1285,6 +1292,7 @@ MagickExport MagickBooleanType WriteImages(const ImageInfo *image_info,
p->scene=(size_t) i++;
break;
}
}
/*
Write images.
*/
Expand Down

0 comments on commit 5b4beba

Please sign in to comment.