From: cristy Date: Sun, 12 Aug 2012 14:39:15 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5154 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=243769eeea0171a1c43375d1c5cc4dda5fd8ae10;p=imagemagick --- diff --git a/MagickCore/geometry.c b/MagickCore/geometry.c index cb87ac15d..baeb0b04f 100644 --- a/MagickCore/geometry.c +++ b/MagickCore/geometry.c @@ -289,10 +289,7 @@ MagickExport MagickStatusType GetGeometry(const char *geometry,ssize_t *x, if ((flags & PercentValue) != 0) { if (((flags & SeparatorValue) == 0) && ((flags & HeightValue) == 0)) - { - *height=(*width); - flags|=HeightValue; - } + *height=(*width); if (((flags & SeparatorValue) != 0) && ((flags & WidthValue) == 0)) *width=(*height); } @@ -1072,10 +1069,7 @@ MagickExport MagickStatusType ParseGeometry(const char *geometry, if ((flags & PercentValue) != 0) { if (((flags & SeparatorValue) == 0) && ((flags & SigmaValue) == 0)) - { - geometry_info->sigma=geometry_info->rho; - flags|=SigmaValue; - } + geometry_info->sigma=geometry_info->rho; if (((flags & SeparatorValue) != 0) && ((flags & RhoValue) == 0)) geometry_info->rho=geometry_info->sigma; }