]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 8 Oct 2014 15:52:56 +0000 (15:52 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 8 Oct 2014 15:52:56 +0000 (15:52 +0000)
coders/tiff.c

index 166da751c077400ded8887d7803fd12a0ea8dbbc..00076eb980523e2158a6257403bf6d49503dae69 100644 (file)
@@ -2365,7 +2365,13 @@ static MagickBooleanType WritePTIFImage(const ImageInfo *image_info,
   images=NewImageList();
   for (next=image; next != (Image *) NULL; next=GetNextImageInList(next))
   {
-    AppendImageToList(&images,CloneImage(next,0,0,MagickFalse,exception));
+    Image
+      *clone_image;
+
+    clone_image=CloneImage(next,0,0,MagickFalse,exception);
+    clone_image->previous=NewImageList();
+    clone_image->next=NewImageList();
+    AppendImageToList(&images,clone_image);
     columns=next->columns;
     rows=next->rows;
     resolution=next->resolution;