]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Mon, 6 Nov 2017 12:12:05 +0000 (07:12 -0500)
committerCristy <urban-warrior@imagemagick.org>
Mon, 6 Nov 2017 12:12:05 +0000 (07:12 -0500)
coders/wpg.c

index 02987790c11939427167fd893f9826085c75bee6..d4b58964741a825c0a8ff3199ebcce9adcf45e98 100644 (file)
@@ -621,11 +621,10 @@ static int UnpackWPG2Raster(Image *image,int bpp,ExceptionInfo *exception)
           {
             /* duplicate the previous row RunCount x */
             for(i=0;i<=RunCount;i++)
-              {      
-                if (InsertRow(image,BImgBuff,(ssize_t) (image->rows >= y ? y : image->rows-1),
-                          bpp,exception) != MagickFalse)
+              {
+                if (InsertRow(image,BImgBuff,(ssize_t) (image->rows > y ? y : image->rows-1),bpp,exception) != MagickFalse)
                   y++;
-              }    
+              }
           }
           break;
         case 0xFF: