From: cristy Date: Fri, 3 Aug 2012 23:46:41 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5194 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78afe01ea9be5167d6b761a366571e971f533367;p=imagemagick --- diff --git a/MagickCore/geometry.c b/MagickCore/geometry.c index 2f8d9c535..cb87ac15d 100644 --- a/MagickCore/geometry.c +++ b/MagickCore/geometry.c @@ -1447,7 +1447,8 @@ MagickExport MagickStatusType ParsePageGeometry(const Image *image, } flags=ParseMetaGeometry(geometry,®ion_info->x,®ion_info->y, ®ion_info->width,®ion_info->height); - if (((flags & PercentValue) != 0) || ((flags & SeparatorValue) == 0)) + if ((((flags & WidthValue) != 0) || ((flags & HeightValue) != 0)) && + (((flags & PercentValue) != 0) || ((flags & SeparatorValue) == 0))) { if ((flags & WidthValue) == 0) region_info->width=region_info->height;