]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 6 Mar 2014 14:11:27 +0000 (14:11 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 6 Mar 2014 14:11:27 +0000 (14:11 +0000)
coders/ps.c

index b41ba16660604f4dc0b573b48ad81492b0955a6b..6b6d316dac00a7af919d5322e119a2de1b003259 100644 (file)
@@ -697,7 +697,8 @@ static Image *ReadPSImage(const ImageInfo *image_info,ExceptionInfo *exception)
       continue;
     if ((fabs(bounds.x2-bounds.x1) <= fabs(hires_bounds.x2-hires_bounds.x1)) ||
         (fabs(bounds.y2-bounds.y1) <= fabs(hires_bounds.y2-hires_bounds.y1)))
-      continue;
+      if (i ==  (ssize_t) priority)
+        continue;
     hires_bounds=bounds;
     priority=i;
   }