]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 10 Jan 2012 16:10:21 +0000 (16:10 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 10 Jan 2012 16:10:21 +0000 (16:10 +0000)
MagickCore/geometry.c

index bc97e3b8ca5c086001de79c4801973de02ecf8ec..f138dde798c3945fb3d4a612f7e1700c2606d9dd 100644 (file)
@@ -1279,8 +1279,8 @@ MagickExport MagickStatusType ParseMetaGeometry(const char *geometry,ssize_t *x,
       scale.y=former_height/(distance/sqrt((double) area));
       if ((scale.x < (double) *width) || (scale.y < (double) *height))
         {
-          *width=(size_t) (former_width/(distance/sqrt(area)));
-          *height=(size_t) (former_height/(distance/sqrt(area)));
+          *width=(size_t) (former_width/(distance/sqrt(area))+0.5);
+          *height=(size_t) (former_height/(distance/sqrt(area))+0.5);
         }
       former_width=(*width);
       former_height=(*height);