]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 14 Feb 2010 02:18:09 +0000 (02:18 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 14 Feb 2010 02:18:09 +0000 (02:18 +0000)
coders/png.c

index d96a111baf56252bd29affb4d26e6990bad86b0f..bbf9f19d8c96d56f9d95ee02b09a9e1e500b94d6 100644 (file)
@@ -2484,10 +2484,16 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
           (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info,
             RGBQuantum,png_pixels+row_offset,exception);
 #endif
+        if ((image->previous == (Image *) NULL) && (num_passes == 1))
+          {
+            status=SetImageProgress(image,LoadImageTag,y,image->rows);
+            if (status == MagickFalse)
+              break;
+          }
         if (SyncAuthenticPixels(image,exception) == MagickFalse)
           break;
       }
-      if (image->previous == (Image *) NULL)
+      if ((image->previous == (Image *) NULL) && (num_passes != 1))
         {
           status=SetImageProgress(image,LoadImageTag,pass,num_passes);
           if (status == MagickFalse)
@@ -2660,8 +2666,14 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
           indices[x]=(*r++);
         if (SyncAuthenticPixels(image,exception) == MagickFalse)
           break;
+        if ((image->previous == (Image *) NULL) && (num_passes == 1))
+          {
+            status=SetImageProgress(image,LoadImageTag,y,image->rows);
+            if (status == MagickFalse)
+              break;
+          }
       }
-      if (image->previous == (Image *) NULL)
+      if ((image->previous == (Image *) NULL) && (num_passes != 1))
         {
           status=SetImageProgress(image,LoadImageTag,pass,num_passes);
           if (status == MagickFalse)