From 11e0a87b4f4ad8ef54f53c16a6135a65bb0c6025 Mon Sep 17 00:00:00 2001 From: cristy Date: Tue, 10 Jan 2012 16:10:21 +0000 Subject: [PATCH] --- MagickCore/geometry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickCore/geometry.c b/MagickCore/geometry.c index bc97e3b8c..f138dde79 100644 --- a/MagickCore/geometry.c +++ b/MagickCore/geometry.c @@ -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); -- 2.40.0