]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 24 Nov 2011 00:24:07 +0000 (00:24 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 24 Nov 2011 00:24:07 +0000 (00:24 +0000)
coders/pdf.c
coders/ps.c

index a6766911f73a55cc19678b5394d0ba6eb8bb35d1..27fa31ce2ba13159ff6a5e809b0d1e44bc53c684 100644 (file)
@@ -539,7 +539,8 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception)
       continue;
     hires_bounds=bounds;
   }
-  if ((hires_bounds.x2 != 0.0) && (hires_bounds.y2 != 0.0))
+  if ((fabs(hires_bounds.x2-hires_bounds.x1) >= MagickEpsilon) && 
+      (fabs(hires_bounds.y2-hires_bounds.x1) >= MagickEpsilon))
     {
       /*
         Set PDF render geometry.
index cc75b91de06a363f177e180c0ba99307cb950731..0299467bfd1051614fa1e1fabe12a8fd0d4d444b 100644 (file)
@@ -692,7 +692,8 @@ static Image *ReadPSImage(const ImageInfo *image_info,ExceptionInfo *exception)
     hires_bounds=bounds;
     priority=i;
   }
-  if (priority != 0)
+  if ((fabs(hires_bounds.x2-hires_bounds.x1) >= MagickEpsilon) && 
+      (fabs(hires_bounds.y2-hires_bounds.x1) >= MagickEpsilon))
     {
       /*
         Set Postscript render geometry.