]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 7 Jul 2013 22:30:56 +0000 (22:30 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 7 Jul 2013 22:30:56 +0000 (22:30 +0000)
Magick++/lib/Magick++/STL.h

index bc629a8ffd31912e162bdcd54f919bc3761d07e2..8dd6f4e2278e9d65989d933eea21339f4cd88a2e 100644 (file)
@@ -1858,25 +1858,23 @@ namespace Magick
     MagickCore::Image* previous = 0;
     ::ssize_t scene = 0;
     for ( InputIterator iter = first_; iter != last_; ++iter )
-      {
-  // Unless we reduce the reference count to one, the same image
-  // structure may occur more than once in the container, causing
-  // the linked list to fail.
-  iter->modifyImage();
-
-  MagickCore::Image* current = iter->image();
+    {
+      // Unless we reduce the reference count to one, the same image
+      // structure may occur more than once in the container, causing
+      // the linked list to fail.
+      iter->modifyImage();
 
-  current->previous = previous;
-  current->next     = 0;
+      MagickCore::Image* current = iter->image();
 
-  if ( previous != 0)
-    previous->next = current;
+      current->previous = previous;
+      current->next = 0;
+      current->scene = scene++;
 
-  current->scene=scene;
-  ++scene;
+      if ( previous != 0)
+        previous->next = current;
 
-  previous = current;
-      }
+      previous = current;
+    }
   }
 
   // Remove links added by linkImages. This should be called after the