From: cristy Date: Sun, 12 Aug 2012 20:55:34 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0458756aecce1e754b8d976c35e1a815c1eb1f2;p=imagemagick --- diff --git a/MagickCore/geometry.c b/MagickCore/geometry.c index baeb0b04f..dccce5ccc 100644 --- a/MagickCore/geometry.c +++ b/MagickCore/geometry.c @@ -289,7 +289,10 @@ MagickExport MagickStatusType GetGeometry(const char *geometry,ssize_t *x, if ((flags & PercentValue) != 0) { if (((flags & SeparatorValue) == 0) && ((flags & HeightValue) == 0)) - *height=(*width); + { + *height=(*width); + flags|=HeightValue; + } if (((flags & SeparatorValue) != 0) && ((flags & WidthValue) == 0)) *width=(*height); }