]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 3 Feb 2011 18:50:56 +0000 (18:50 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 3 Feb 2011 18:50:56 +0000 (18:50 +0000)
coders/pdf.c

index 3e6d9ca968484d8d1fc17e5dd452cc3597b1c95c..63e77ff8fe81a051dd6a3f609e63680c921c2617 100644 (file)
@@ -597,17 +597,15 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception)
       if ((flags & SigmaValue) == 0)
         image->y_resolution=image->x_resolution;
     }
-  (void) FormatMagickString(density,MaxTextExtent,"%gx%g",
-    image->x_resolution,image->y_resolution);
+  (void) FormatMagickString(density,MaxTextExtent,"%gx%g",image->x_resolution,
+    image->y_resolution);
   if (image_info->page != (char *) NULL)
     {
       (void) ParseAbsoluteGeometry(image_info->page,&page);
-      page.width=(size_t) floor(page.width*image->x_resolution/delta.x+
-        0.5);
-      page.height=(size_t) floor(page.height*image->y_resolution/delta.y+
-        0.5);
-      (void) FormatMagickString(options,MaxTextExtent,"-g%.20gx%.20g ",
-        (double) page.width,(double) page.height);
+      page.width=(size_t) floor(page.width*image->x_resolution/delta.x+0.5);
+      page.height=(size_t) floor(page.height*image->y_resolution/delta.y+0.5);
+      (void) FormatMagickString(options,MaxTextExtent,"-g%.20gx%.20g ",(double)
+        page.width,(double) page.height);
     }
   if (cmyk != MagickFalse)
     (void) ConcatenateMagickString(options,"-dUseCIEColor ",MaxTextExtent);